[Pixlr] Remove Black Sidebar

Removes the annoying black sidebar that Adblockers didn't remove.

当前为 2021-12-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name [Pixlr] Remove Black Sidebar
  3. // @namespace HKR
  4. // @match https://pixlr.com/*
  5. // @grant none
  6. // @version 1.1
  7. // @author HKR
  8. // @description Removes the annoying black sidebar that Adblockers didn't remove.
  9. // @require https://greasyfork.org/scripts/21927-arrive-js/code/arrivejs.js
  10. // @supportURL https://github.com/Hakorr/Userscripts/issues
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13.  
  14. GM_addStyle("#workspace { right: 0px !important; }");
  15.  
  16. document.arrive('#slot', function () {
  17. document.querySelector('#slot').remove();
  18. console.log("[Remove Black Siderbar] Removed an element!")
  19. });
  20.  
  21. document.arrive('#right-space', function () {
  22. document.querySelector('#right-space').remove();
  23. console.log("[Remove Black Siderbar] Removed an element!")
  24. });