v2ex屏蔽不想看到的节点

在v2ex首页屏蔽你不想看到的节点

  1. // ==UserScript==
  2. // @name v2ex屏蔽不想看到的节点
  3. // @namespace https://www.v2ex.com
  4. // @match https://www.v2ex.com/?tab=*
  5. // @description 在v2ex首页屏蔽你不想看到的节点
  6. // @author apethink
  7. // @version 0.0.1
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. var nodeNames=['自言自语','无要点']; //在这里填入节点名称
  13. document.querySelectorAll('.cell.item').forEach(function(e){
  14. var nodeName=e.querySelector('.node').innerHTML;
  15. if(nodeNames.indexOf(nodeName)!=-1){
  16. e.style.display='none';
  17. }
  18. });
  19. })();

QingJ © 2025

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