Greasy Fork镜像 支持简体中文。

CSDN Blog Blocker Blocker

Get rid of the 'continue reading' button

  1. // ==UserScript==
  2. // @name CSDN Blog Blocker Blocker
  3. // @description Get rid of the 'continue reading' button
  4. // @match https://blog.csdn.net/*
  5. // @copyright Nianyi Wang
  6. // @version 0.0.1.20180901150149
  7. // @namespace https://gf.qytechs.cn/users/209602
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12. var execute = function() {
  13. document.getElementById('article_content').removeAttribute('style');
  14. document.getElementsByClassName('hide-article-box')[0].outerHTML = '';
  15. };
  16. var interval = 100, timeout = 8000, start = new Date();
  17. var mark = setInterval(function() {
  18. if(new Date() - start > timeout)
  19. clearInterval(mark);
  20. var button = document.getElementById('btn-readmore');
  21. if(button) {
  22. execute();
  23. clearInterval(mark);
  24. }
  25. }, interval);
  26. })();

QingJ © 2025

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