Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.0
// @grant none
// @updateURL https://gist.github.com/Tsunder/cb4505a9faf7752d76d49274b34e04fe/raw/shadow%2520highbeams.user.js
// @downloadURL https://gist.github.com/Tsunder/cb4505a9faf7752d76d49274b34e04fe/raw/shadow%2520highbeams.user.js
// @icon http://static.pardus.at/img/std/opponents/shadow.png
// ==/UserScript==
// 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