CSDN取消"关注博主才可阅读全文"限制

绕过CSDN"关注博主即可阅读全文"

目前為 2023-01-06 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name CSDN取消"关注博主才可阅读全文"限制
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description 绕过CSDN"关注博主即可阅读全文"
  6. // @author smartfish
  7. // @match *://*.csdn.net/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=gf.qytechs.cn
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let t = setInterval(function () {
  16. //设定循环定时器,1000毫秒=1秒,1秒钟检查一次目标对象是否出现
  17. let articleContent = document.querySelector('#article_content'); //声明要查询的对象
  18. let hideAarticleBox = document.getElementsByClassName('hide-article-box')[0]
  19. console.log("will check the articleContent----",articleContent)
  20. console.log("will check the hideAarticleBox----",hideAarticleBox)
  21. if (articleContent && hideAarticleBox) {
  22. console.log("will change the style----")
  23. //判断对象是否存在,存在则开始设置值
  24. articleContent.style.height = 'auto'
  25. articleContent.style.overflow = 'hidden'
  26. hideAarticleBox.style.display = 'none'
  27. clearInterval(t); //清除循环定时器
  28. }
  29.  
  30. }, 1000);
  31. // Your code here...
  32.  
  33.  
  34. })();

QingJ © 2025

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