Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Hejto - No light theme button
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Disabling theme switch button at hejto.pl.
- // @author moefornax
- // @match *.hejto.pl/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var themeButton = document.querySelector('[aria-label="Zmień motyw"]');
- var themeDiv = themeButton.parentNode;
- var rightMenu = themeDiv.parentNode;
- setTimeout(function(){
- rightMenu.removeChild(themeDiv);
- }, 500);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement