通用Cleaner&Consor页面内容防火墙

通用Cleaner&Consor页面内容防火墙。已完善名单,对网页内容进行过滤,普适性常用标题党、缺德媒体,过滤替换,误导,极端,情绪化等单词提示。而对技术类、工具类、高质量平台白名单。

  1. // ==UserScript==
  2. // @name 通用Cleaner&Consor页面内容防火墙
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description 通用Cleaner&Consor页面内容防火墙。已完善名单,对网页内容进行过滤,普适性常用标题党、缺德媒体,过滤替换,误导,极端,情绪化等单词提示。而对技术类、工具类、高质量平台白名单。
  6. // @author skycloud
  7. // @include http://*
  8. // @include https://*
  9. // @exclude http://localhost*
  10. // @exclude https://note.youdao.com/*
  11. // @exclude http*://*google*
  12. // @exclude http*://pan.baidu*
  13. // @exclude http*://*search*
  14. // @exclude *youdao*
  15. // @exclude *note.*
  16. // @exclude *yinxiang*.*
  17. // @exclude *develop*
  18. // @exclude *://*.duokan.*
  19. // @exclude *://*.boots*.*
  20. // @exclude *://*.*learn*.*
  21. // @exclude *://*.*wiz.*
  22. // @exclude *://*.*yinxiang*.*
  23. // @exclude *://*.*evernote*.*
  24. // @exclude *://*.*ximalaya*.*
  25. // @exclude *://*.lrts.com*
  26. // @exclude *://*.*mooc*.*
  27. // @exclude *://*.*school*.*
  28. // @exclude *://*.*book*.*
  29. // @exclude *://*juejin*
  30. // @exclude *://*segmentfault*
  31. // @exclude *://*csdn*
  32. // @exclude *://*frontend*
  33. // @exclude *://*rss*
  34. // @exclude *://*java*
  35. // @exclude *://*script*
  36. // @exclude *://*python*
  37. // @exclude *://*tech*
  38. // @exclude *://*css*
  39. // @exclude *://*icon*
  40. // @exclude *://*logo*
  41. // @exclude *://*module*
  42. // @exclude *://*web*
  43. // @exclude *://*library*
  44. // @exclude *://*scholar*
  45. // @exclude *://*markdown*
  46. // @exclude *://*webpack*
  47. // @exclude *://*node*
  48. // @exclude *://*jquery*
  49. // @exclude *://*.*git*.*
  50. // @exclude *://*git*.*
  51. // @exclude *://*.*vue.*
  52. // @exclude *://doc.*.*
  53. // @exclude *://help.*.*
  54. // @exclude *://*.*cloud*.*
  55. // @exclude *://*.*code*.*
  56. // @exclude *://*code*.*
  57. // @exclude *://*.net*
  58. // @exclude *://*.org*
  59. // @exclude *://*.edu*
  60. // @exclude *://*.*.net
  61. // @exclude *://*.*.org
  62. // @exclude *://*.*.edu*
  63. // @exclude *://tech.*
  64. // @exclude *://*.tech*
  65. // @exclude *://*.*tech*.*
  66. // @exclude *://*.laravel*.*
  67. // @exclude *://*.yinxiang*.*
  68. // @exclude *://*.douban.*
  69. // @exclude *://*.*tool*.*
  70. // @exclude *://*.*doc*.*
  71. // @exclude *://*.work*
  72. // @exclude *://*.segmentfault.com*
  73. // @exclude *://*stackoverflow*.*
  74. // @exclude *://open.163.com*
  75. // @exclude *://study.163.com*
  76. // @exclude *://*.v2ex.*
  77. // @exclude https://www.jianshu.com/p/*
  78. // @grant none
  79. // ==/UserScript==
  80.  
  81. /*轻度过滤,普适性常用标题党、缺德媒体,过滤替换,误导,极端,情绪化等单词提示*/
  82.  
  83. (function() {
  84. 'use strict';
  85.  
  86. // Your code here...
  87.  
  88. walk(document.body);
  89.  
  90. function walk(node)
  91. {
  92. // I stole this function from here:
  93. // http://is.gd/mwZp7E
  94.  
  95. var child, next;
  96.  
  97. switch ( node.nodeType )
  98. {
  99. case 1:
  100. case 9:
  101. case 11:
  102. child = node.firstChild;
  103. while ( child )
  104. {
  105. next = child.nextSibling;
  106. walk(child);
  107. child = next;
  108. }
  109. break;
  110.  
  111. case 3:
  112. handleText(node);
  113. break;
  114. }
  115. }
  116. function handleText(textNode)
  117. {
  118.  
  119. //定义过滤替换词库
  120. var words = ["!","!!","?!","!?","啦!","震惊!","封建迷信","猪叫声","可怕","恐怖","狗带","惊险","吓尿","还能怎么","驰名","独家","吓人","瞧不起","鄙视","美女","化妆","时尚","今天你","推广","刘慈欣","三体","流浪地球","轰动","事关","重大","阴谋","翻天","性感","女人","老公","老婆","黑幕","天啊","死人","男女","惊天","男票","女票","女神","来得及","现在才","偶像","喜讯","谁都","注意了","居然","最怕","抖音","杀死","主播","炸天","废了","陈安之","于丹","刘一秒","千万别","千万要","最美","宫斗","热播","热搜","炒股","股票","币圈","比特币","营销","佛系","道系","谋杀","离婚","粉丝","脑残","傻逼","性侵","选股","网贷","刷爆","狼性","狼道","走红","火爆","阿里巴巴","能行吗","天挣","灵粮","国际导师","灵修","奥修","上帝","骚操作","追星","什么样的体验","屌","惊艳","种怎样的体验?","种什么体验","如何评价","如何看待","大半夜的看哭了","大半夜的笑出声","蛤蛤蛤","一夜之间","我有一个朋友","一觉醒来破千赞","虐狗","爆照","你以为","路飞","该怎么办","妹纸","性欲","火山视频","西瓜视频","我有个","啊!","卧槽","我操","新鲜事","帝吧","李刚","偷看","表情包","求保佑","拜佛","婆婆","婆媳","逆袭","草根","受不了","素颜","情趣","了!","赠送","中奖","求你","不得了","值得拥有","沸腾","亿万","富翁","自杀","危机感","面膜","越早越好","老司机","凉凉","争端","引发的","天下第一","双修","小龙虾","火辣","赶紧","猝死","跳楼","什么都","杀人","扛把子","强奸","把话撂这了","奸尸","尸体","僵尸","邪术","吸血鬼","霸道总裁","少爷","公主","虐狗","单身狗","都市","重生","穿越","烂人","苦逼","狗逼","豪门","贱人","暖男","擦肩而过","斗气","异界","霸王","诱惑","无赖","痞子","盗墓","鬼吹灯","欧巴","恶搞","吸毒","致癌","身亡","不为人知","好结果","炒鸡","神操作","骚操作","自抱自泣","太tm","他妈","少在我面前","少跟我","骨灰","十八代","祖宗","畜生","崽子","丑闻","揭丑","熊孩子","女郎","脑浆","撩人","风骚","性感","火辣","大胸","女神","白皙","妖娆","热裤","挑逗","喷血","湿身","丰满","模特","妩媚"];
  121.  
  122. // var fs = require("fs");
  123. // var text = fs.readFileSync("./badwords.txt");
  124. // var textByLine = text.split("\n");
  125. // chrome.extension.getBackgroundPage().console.log(textByLine);
  126.  
  127. var v = textNode.nodeValue;
  128. console.log(v);
  129.  
  130. words.forEach(function(e) {
  131. v = v.replace(e, " ");
  132. });
  133.  
  134. textNode.nodeValue = v;
  135. }
  136.  
  137.  
  138. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址