IT之家了解到

去掉文章内容中的废话

  1. // ==UserScript==
  2. // @name IT之家了解到
  3. // @version 0.5
  4. // @namespace https://gf.qytechs.cn/zh-CN/users/452492-0x400
  5. // @description 去掉文章内容中的废话
  6. // @author 0x400
  7. // @match https://www.ithome.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=ithome.com
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var regex = /据?(<a[^<]*?>)?IT之家(<\/a>)?(从.*)?(了解|获悉|了解到|注意到|总结|注|备注|附|此前报道|\s*\d+\s*月\s*\d+\s*日消息)(:|,)?/g;
  16. document.querySelector('.post_content').innerHTML = document.querySelector('.post_content').innerHTML.replaceAll(regex,'');
  17. })();

QingJ © 2025

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