HideFilesSection

I just need to see readme!!!

  1. // ==UserScript==
  2. // @name HideFilesSection
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description I just need to see readme!!!
  6. // @author lane
  7. // @match https://github.com/*
  8. // @exclude https://github.com/*/*/tree/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. ;(async function () {
  13. const sleep = function * (sec) {
  14. while (true) {
  15. yield new Promise(res => setTimeout(res, sec * 1000))
  16. }
  17. }
  18.  
  19. for await (const __ of sleep(0.5)) {
  20. const e = document.querySelector('.rgh-toggle-files');
  21. if (e) {
  22. e.click()
  23. break
  24. }
  25. }
  26. })()

QingJ © 2025

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