StackOverflow auto expand comments

Automatically expands all StackOverflow comments

  1. // ==UserScript==
  2. // @name StackOverflow auto expand comments
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Automatically expands all StackOverflow comments
  6. // @author red9350
  7. // @match https://stackoverflow.com/questions/*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. //https://stackoverflow.com/questions/*/*
  12. (function() {
  13. "use strict";
  14.  
  15. window.onload = function() {
  16. var expandLinks = document.getElementsByClassName('js-show-link comments-link');
  17. for (var i = 0; i < expandLinks.length; i++)
  18. {
  19. expandLinks[i].click();
  20. }
  21. };
  22. })();

QingJ © 2025

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