[Home] [Catalog] [Search] [Inbox] [Write PM] [Admin]
[Return] [Bottom]

Posting mode: Reply

(for deletion)
  • Allowed file types are: gif, jpg, jpeg, png, bmp, swf, webm, mp4
  • Maximum file size allowed is 50000 KB.
  • Images greater than 200 * 200 pixels will be thumbnailed.





File: yeah.png
(101 KB, 943x684)[ImgOps]
104061
yeah!


// ==UserScript==

// @name Heyuri Yeah Highlighter

// @namespace heyuri-yeah-highlight

// @version 1.0

// @description Highlights reply posts based on Yeah count (like a Futaba★Channel userscript)

// @author Heyuri Applicable Research & Development

// @match https://img.heyuri.net/*

// @grant none

// ==/UserScript==


(function () {
"use strict";

function applyHighlighting() {
document.querySelectorAll(".post.reply").forEach(post => {
post.removeAttribute("style");

const sod = post.querySelector(".sod");
if (!sod) return;

const match = sod.textContent.match(/\d+/);
if (!match) return;

const count = parseInt(match[0], 10);

const blue = Math.round(10 * count + 180);
const color = "rgb(180, 240, " + blue + ")";

post.style.backgroundColor = color;
});
}

const observer = new MutationObserver(() => {
applyHighlighting();
});

observer.observe(document.body, {
childList: true,
subtree: true,
characterData: true
});

applyHighlighting();

})();
>>
File: 1630238705302.jpg
(95 KB, 1280x720)[ImgOps]
97604
Ja!
>>
File: futaba.png
(135 KB, 924x668)[ImgOps]
138848
insupaia'd by a Futaba★Channeru userscript
>>
File: giveherbirth.jpg
(40 KB, 515x567)[ImgOps]
41299
This new feature reminds me of Nintendo's Miiverse.

Yeah!
>>
wtf when did we get soudesu i was just thinking we need that am i haruhi


[Top]
Delete post: []
First
[0]
Last