Generous Gazette

Removes paywall on Colorado Springs based Gazette newspaper.

  1. // ==UserScript==
  2. // @name Generous Gazette
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3
  5. // @description Removes paywall on Colorado Springs based Gazette newspaper.
  6. // @author thebspatrol
  7. // @match http*://gazette.com/*
  8. // @match http*://*.gazette.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. var _html;
  15. function pollPage(){
  16. _html = document.getElementsByTagName("csg-modal");
  17. if (_html !== undefined){
  18. console.log("paywall caught!");
  19. while (_html.length > 0) {
  20. _html[0].parentElement.removeChild(_html[0]);
  21. clearInterval(interval);
  22. }
  23. }
  24. }
  25. var interval = setInterval(pollPage, 250);
  26. })();