Skip to content

Instantly share code, notes, and snippets.

@q00u
Created April 21, 2022 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q00u/9cb511260fe5d8650d45dddadb1741c9 to your computer and use it in GitHub Desktop.
Save q00u/9cb511260fe5d8650d45dddadb1741c9 to your computer and use it in GitHub Desktop.
// ==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