Last active
April 22, 2024 17:43
-
-
Save sandorex/88579385948333aa733a35d295ff0031 to your computer and use it in GitHub Desktop.
Darken images on website plugin
This file contains hidden or 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 Darken Images | |
// @match *://*/* | |
// @grant GM_getValue | |
// @version 1.1 | |
// @homepageURL https://gist.github.com/sandorex/88579385948333aa733a35d295ff0031 | |
// @downloadURL https://gist.github.com/sandorex/88579385948333aa733a35d295ff0031/raw/7065b74d82971fa0c4a5addcb1b89ddd19ad36c8/darken_images.user.js | |
// @author Sandorex | |
// @description Darkens images | |
// ==/UserScript== | |
(async function() { | |
Array.from(document.querySelectorAll('img')).forEach(img => { | |
img.style.opacity = GM_getValue('opacity', 0.5); | |
}); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment