taz: remove paywall

Removes taz.de paywall

当前为 2017-09-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name taz: remove paywall
  3. // @namespace https://greasyfork.org/en/users/8981-buzz
  4. // @description Removes taz.de paywall
  5. // @author buzz
  6. // @version 0.3
  7. // @license GPLv2
  8. // @match http://*.taz.de/*
  9. // @match https://*.taz.de/*
  10. // @grant none
  11. // ==/UserScript==
  12. /* jshint -W097 */
  13. 'use strict';
  14.  
  15. (function() {
  16. GM_addStyle('#tzi-paywahl-fg, #tzi-paywahl-bg { display: none !important; }');
  17. function fun() {
  18. var p = document.getElementById('tzi_paywall');
  19. if (p)
  20. p.style.display = 'none';
  21. else
  22. window.setTimeout(fun, 100);
  23. }
  24. window.setTimeout(fun, 100);
  25. })();