Guest User

No light theme @ hejto.pl

a guest
Apr 25th, 2021
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Hejto - No light theme button
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Disabling theme switch button at hejto.pl.
  6. // @author       moefornax
  7. // @match        *.hejto.pl/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.  
  14.     var themeButton = document.querySelector('[aria-label="Zmień motyw"]');
  15.     var themeDiv = themeButton.parentNode;
  16.     var rightMenu = themeDiv.parentNode;
  17.     setTimeout(function(){
  18.     rightMenu.removeChild(themeDiv);
  19.     }, 500);
  20. })();
RAW Paste Data