Github Batch Open Tabs

Batch Open Github Search Results.

  1. // ==UserScript==
  2. // @name Github Batch Open Tabs
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Batch Open Github Search Results.
  6. // @author v4IIII
  7. // @match https://www.github.com/
  8. // @connect www.github.com
  9. // @include *://*github.com/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var c2=[];
  16. var c0=document.getElementsByTagName('a');
  17. console.log(c0);
  18. for (var i=0;i<c0.length;i++){
  19. var c1=c0[i].getAttribute('class');
  20. if (c1==="v-align-middle"){c2.push(c0[i].href);};
  21. /* try{var c1=c0[i].firstChild.nextSibling.href;}catch(err){c1=null;}
  22. try{var c3=c0[i].firstChild.href;}catch(err){c3=null;}
  23. console.log(c1);
  24. console.log(c3);
  25. if(c1===undefined){}else{if(c1===null){}else{c2.push(c1);}}
  26. if(c3===undefined){}else{if(c3===null){}else{c2.push(c3);}}*/
  27. };
  28. console.log(c2);
  29.  
  30. function fm(a){
  31. let handle=window.open(a);
  32. handle.blur();
  33. window.focus();
  34. };
  35.  
  36. for (i=0;i<c2.length;i++){
  37. fm(c2[i]);
  38. }
  39. // Your code here...
  40. })();

QingJ © 2025

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