Block obfuscated ads on bitcointalk.

try to take over the world!

当前为 2018-01-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Block obfuscated ads on bitcointalk.
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://bitcointalk.org/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /*jshint esversion:6 */
  12. (function() {
  13. 'use strict';
  14. // remove ad and shitty signatures.
  15. document.querySelectorAll("table>tbody>tr>td>table>tbody>tr>td>div:not([id]):not(.post):not(.subject):not(.personalmessage):not(.smalltext)[class]").forEach(t=>t.remove());
  16. // remove ad disclaimer.
  17. document.querySelectorAll("form>table>tbody>tr>td>span").forEach(t=>t.remove());
  18. // remove some <hr> tags
  19. document.querySelectorAll("td.smalltext hr").forEach(t=>t.remove());
  20. })();