CSDN

CSDN优化

  1. // ==UserScript==
  2. // @name CSDN
  3. // @namespace https://c332030.github.io
  4. // @version 1.1
  5. // @description CSDN优化
  6. // @author c332030
  7. // @match https://*.csdn.net/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. /*
  14. 自动展开
  15. */
  16. try {
  17. document.getElementById("btn-readmore").click();
  18. } catch(err) {}
  19.  
  20. /*
  21. 自动选择博客分类和博客类型
  22. */
  23. try {
  24. document.getElementById("selType").value = '1';
  25. document.getElementById("radChl").value = '16';
  26. } catch(err) {}
  27.  
  28. })();