Skip to content

Instantly share code, notes, and snippets.

@Tsunder
Last active February 28, 2023 23:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tsunder/cb4505a9faf7752d76d49274b34e04fe to your computer and use it in GitHub Desktop.
Save Tsunder/cb4505a9faf7752d76d49274b34e04fe to your computer and use it in GitHub Desktop.
Shines a light on shadows so you don't miss them.
// ==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