[Settings] [Home] [Catalog] [Search] [Private messages] [Admin]
[Return] [Bottom]

Posting mode: Reply

Emotes
Kaomoji
Emoji
BBCode
(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.
  • 25 unique users in the last 10 minutes (including lurkers)





Want your banner here? Click here to submit yours!

File: yeah.png
[Spoiler](101 KB, 943x684)
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();

})();
Marked for deletion (Old)
>>
97604
Ja!
>>
File: futaba.png
[Spoiler](135 KB, 924x668)
138848
insupaia'd by a Futaba★Channeru userscript
>>
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

Want your banner here? Click here to submit yours!

[Top]

Delete post: []
First
[1]
Last