Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Hejto motyw
- // @version 1
- // @grant none
- // @include https://*.hejto.pl/*
- // ==/UserScript==
- window.addEventListener("load", function() {
- setTimeout(function() {
- if (document.querySelector('#root').attributes.class.value === "dark") {
- document.querySelector("[aria-label='Zmień motyw']").click();
- }
- }, 100);
- }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement