CSDN_CODE_COPY

CSDN code copy

  1. // ==UserScript==
  2. // @name CSDN_CODE_COPY
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description CSDN code copy
  6. // @author ZF
  7. // @license MIT
  8. // @match https://blog.csdn.net/*
  9. // @require https://code.jquery.com/jquery-2.1.4.min.js
  10. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. $('#article_content').css('height', 'auto');
  18. $('#article_content').css('overflow', 'auto');
  19.  
  20. $('#treeSkill').css('display', 'none');
  21. $('.hide-article-box').css('display', 'none');
  22.  
  23. $('#content_views pre code').css('user-select', 'text');
  24. $('.cnblogs_code pre').css('user-select', 'text');
  25.  
  26. })();