去页面图片

try to take over the world!

目前为 2020-11-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 去页面图片
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://*/*
  8. // @include *://www.zhihu.com/*
  9. // @include *://bbs.hupu.com/*
  10.  
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. // Your code here...
  17. try{
  18. let imgLink=document.querySelector('.ZhihuLogoLink');
  19. imgLink.style="display:none"
  20. let PageHeader=document.querySelector('.Sticky');
  21. PageHeader.style="display:none"
  22. let TopstoryPageHeader=document.querySelector('.GlobalSideBar.GlobalSideBar--old');
  23. TopstoryPageHeader.style="display:none"
  24. }
  25. catch{
  26. console.log('hupu')
  27. }
  28.  
  29.  
  30. try{
  31. let imgs = document.getElementsByTagName('img');
  32.  
  33. for(let i=0;i<imgs.length;i++){
  34. imgs[i].src=""
  35. }
  36. }
  37. catch{
  38. console.log("zhihu")
  39. }
  40. })();
  41.  

QingJ © 2025

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