Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Amazon Anti-Vide-Dimmer
- // @namespace http://tampermonkey.net/
- // @include https://www.amazon.*
- // @icon https://www.google.com/s2/favicons?domain=amazon.com
- // @grant none
- // @run-at document-idle
- // ==/UserScript==
- (function() {
- const IF_PROBLEMS = false;
- function removeDimming() {
- Array.from(document.querySelectorAll(IF_PROBLEMS ? '.dim-video-player' : 'video')).forEach(video => video.setAttribute("style","opacity: 1 !important;"));
- }
- setInterval(removeDimming, 100);
- })();
Add Comment
Please, Sign In to add comment