disable-jquery

Disable jQuery after the page loads. Useful for sites that rely on jQuery to penalize AdBlock users.

  1. // ==UserScript==
  2. // @name disable-jquery
  3. // @namespace https://github.com/ahuanguchi
  4. // @version 1.0.1
  5. // @description Disable jQuery after the page loads. Useful for sites that rely on jQuery to penalize AdBlock users.
  6. // @author ahuanguchi
  7. // @match *://*/*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. window.addEventListener("load", function () {
  13. if (window.hasOwnProperty("$")) {
  14. window.$ = null;
  15. }
  16. if (window.hasOwnProperty("jQuery")) {
  17. window.jQuery = null;
  18. }
  19. });