Created
April 21, 2022 07:49
-
-
Save q00u/9cb511260fe5d8650d45dddadb1741c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Realmscans Link Decolorer | |
// @namespace https://gist.github.com/q00u | |
// @version 0.1 | |
// @description Realmscans makes all links (visited or not) the same color. This undoes that. | |
// @author Phoenix G | |
// @match https://realmscans.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=realmscans.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
"use string"; | |
const sheetRef = document.styleSheets[0]; /*index of the sheet in the markup head el*/ | |
for (let i = 0; i < sheetRef.rules.length; i++) { | |
if (sheetRef.rules[i].selectorText==".chapternum") { | |
sheetRef.removeRule(i) | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment