Last active
February 28, 2023 23:13
-
-
Save Tsunder/cb4505a9faf7752d76d49274b34e04fe to your computer and use it in GitHub Desktop.
Shines a light on shadows so you don't miss them.
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 Shadow Hibeams | |
// @namespace Astraltoremail@gmail.com | |
// @author Tsunders | |
// @description Shines a light on shadows so you don't miss them. | |
// @include http*://*.pardus.at/main.php* | |
// @version 1.1 | |
// @grant none | |
// @updateURL https://github.com/Tsunder/pardus-script-fun-pack/raw/master/userscripts/shadow_highbeams.user.js | |
// @downloadURL https://github.com/Tsunder/pardus-script-fun-pack/raw/master/userscripts/shadow_highbeams.user.js | |
// @icon http://static.pardus.at/img/std/opponents/shadow.png | |
// ==/UserScript== | |
// 1.1 2018 november 28 download migration | |
// 1.0 2018 november 08 initial creation | |
function HighlightShadows() { | |
var shadows = document.querySelectorAll('#navarea a > img[src*=shadow]'); | |
for (var i = 0; i < shadows.length; i++) { | |
shadows[i].parentNode.setAttribute('style', 'background:#00B448'); | |
} | |
} | |
HighlightShadows(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment