Skip to content

Instantly share code, notes, and snippets.

@RollingHog
Created February 17, 2025 00:01
Show Gist options
  • Save RollingHog/51e930094d16a565087dbd03e3a8ec5a to your computer and use it in GitHub Desktop.
Save RollingHog/51e930094d16a565087dbd03e3a8ec5a to your computer and use it in GitHub Desktop.
highlight OP and Anon in wr
// ==UserScript==
// @name highlight OP and Anon in wr
// @namespace http://tampermonkey.net/
// @version 2025-02-11
// @description
// @author You
// @include https://2ch.hk/wr*
// @include https://2ch.life/wr*
// @grant none
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
const arr = Array.from(document.querySelectorAll('.post__anon'))
arr.filter(el => el.textContent == 'Аноним').forEach(el => el.parentNode.parentNode.parentNode.style.borderLeft = '2px solid yellow')
arr.filter(el => el.textContent == 'ОП').forEach(el => el.parentNode.parentNode.parentNode.style.borderLeft = '2px solid red')
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment