index.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/zh/adblock/" />
  7. <link rel="stylesheet" href="../style.css#" type="text/css" />
  8. <title>信息隐藏技术总览</title>
  9. <script>
  10. function findLang(){
  11. let href = location.href;
  12. for(let i=href.length-1;i>0;i--){
  13. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  14. return i;
  15. }
  16. return 0;
  17. }
  18. function nav2(page){
  19. let i = findLang();
  20. location.href = location.href.substring(0,i+1)+page;
  21. }
  22. function nav2Lang(lang){
  23. let i = findLang();
  24. let href = location.href;
  25. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <header class='header'>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
  32. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
  33. <nav>
  34. </nav>
  35. </header>
  36. <br />
  37. <div class="container">
  38. <h1 class="title">信息隐藏技术总览
  39. <br>
  40. <span class="subtitle"></span>
  41. </h1>
  42. <ul class="tags">
  43. </ul>
  44. <p>总体来说,分为手动控制和针对特定网站的规则两大类办法。手动控制可以保存为网站配置从而自动化。</p>
  45. <ul>
  46. <li>
  47. <p><a href="../adblock_domain/index.html#">双正则表达式根域名隐藏</a>。</p>
  48. <ul>
  49. <li>可使用<a href="../bookmarklet/index.html#">列出外部脚本小书签</a>生成外部js文件列表,长按可疑链接(一般为域名不同的外链),执行“屏蔽根域名”。</li>
  50. </ul>
  51. </li>
  52. <li>
  53. <p><a href="../sitejs/index.html#">针对特定网站的脚本样式</a>。</p>
  54. <ul>
  55. <li>长按底部工具栏&quot;js&quot;按钮,执行&quot;标记不良元素&quot;菜单命令,点击页面元素会弹出对话框显示元素及祖先所有属性,并生成css屏蔽代码。默认使用“display:none”屏蔽,但如果上述显示属性中出现过&quot;display&quot;,则建议使用&quot;transform:scale(0)!important&quot;屏蔽。</li>
  56. </ul>
  57. </li>
  58. <li>
  59. <p>长按底部工具栏窗口管理按钮,选取&quot;仅显示图片&quot;或&quot;仅显示视频&quot;,图片视频网站彻底干净。选取&quot;禁用伪元素&quot;,&quot;禁用iframe&quot;。更多可参看<a href="../adblock_css/index.html#">自定义样式</a>。</p>
  60. <ul>
  61. <li>保存书签时可在网址前面添加&quot;i:0mc32:&quot;,则整个网址树自动采用&quot;仅显示图片&quot;。没有任何不良信息。改为&quot;c16&quot;则为&quot;仅显示视频&quot;。&quot;c12&quot;则同时采用&quot;禁用伪元素&quot;,&quot;禁用iframe&quot;。</li>
  62. </ul>
  63. </li>
  64. <li>
  65. <p>长按[☰]按钮&quot;自动全屏播放&quot;,直接<a href="../video/index.html#">全屏无干扰播放</a>。不良信息没有任何机会出现。不使用全局脚本“自动全屏播放”的情况下,还可以有以下几种方法:</p>
  66. <ul>
  67. <li>使用<a href="../searchurl/url.html">常用服务</a>自动全屏播放菜单(长按视频链接-&gt;命令),则页面视频会自动全屏播放。按设置按钮,如果勾选“允许自动播放”,则今后此窗口内其它任何视频网址都将会自动全屏无干扰播放。保存书签时可在网址前面添加&quot;i:5f&quot;。</li>
  68. <li>保存书签时可在网址前面添加&quot;i:0mi:5f:&quot;,则整个网址树自动全屏播放。</li>
  69. </ul>
  70. </li>
  71. <li>
  72. <p>长按设置,选取&quot;拦截外链脚本&quot;。可在<a href="i:61:../zh/searchurl/func.html">界面配置及杂项</a>网页额外拦截第三方可疑资源。可<a href="file:///data/data/info.torapp.uweb/files/js.allow">配置白名单js.allow</a>。</p>
  73. </li>
  74. <li>
  75. <p>长按[☰]按钮可隐藏浮动信息,移除横幅,清空定时器(防止定时触发不良信息),中断可疑事件(防止用户操作触发),等待(防止延迟触发)。</p>
  76. </li>
  77. <li>
  78. <p>直接关闭图像。</p>
  79. </li>
  80. <li>
  81. <p>关闭[JS]脚本。</p>
  82. </li>
  83. <li>
  84. <p><a href="file:///data/data/info.torapp.uweb/files/url.deny">url.deny</a>。需要屏蔽的url正则表达式(java语法),忽视回车,可用&quot;#&quot;开头注释。</p>
  85. </li>
  86. </ul>
  87. </div>
  88. <p>Last Modified: 2 April 2024<br>
  89. add js function in README<br>
  90. <pre></pre>
  91. </p>
  92. <script id='jsgiscus'
  93. src='https://giscus.app/client.js'
  94. data-repo="torappinfo/uweb"
  95. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  96. data-category="Announcements"
  97. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  98. data-mapping="title"
  99. data-strict="0"
  100. data-reactions-enabled="1"
  101. data-emit-metadata="0"
  102. data-input-position="top"
  103. data-theme="light"
  104. data-lang="en"
  105. data-loading="lazy"
  106. crossorigin="anonymous" async>
  107. </script>
  108. <footer class="site-footer">
  109. <div class="container">
  110. &copy; 2018-2024 Richard H. Cao
  111. </div>
  112. </footer>
  113. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  114. </body>
  115. </html>