Steam Link Regular

regular links with end /[appid]/ & print at console

  1. // ==UserScript==
  2. // @name Steam Link Regular
  3. // @description regular links with end /[appid]/ & print at console
  4. // @author desc_inno
  5. // @namespace https://github.com/desc70865/Steam-Link-Regular
  6. // @supportURL https://github.com/desc70865/Steam-Link-Regular/issues
  7. // @version 0.7
  8. // @icon https://keylol.com/favicon.ico
  9. // @match https://keylol.com/*
  10. // @require https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. print();
  16. jQuery('body').on("click", "#threadindex > div > ul > li",()=>{
  17. $('.t_f').ready(()=>setTimeout(()=>{print().then(unauto())},1000))
  18. });
  19. })();
  20.  
  21. function print(){
  22. var table = [],
  23. name = [];
  24. setTimeout(3000);
  25. document.querySelectorAll('.steam-info-link').forEach(function(x){
  26. var not_language = x.href.match(/(\/\?l)/g) == null,
  27. not_client = x.href.match(/(\/\?cc)/g) == null,
  28. appid = x.href.match(/(?<=\/app\/)(\d{3,7})/g);
  29. if (not_language && not_client && appid != null){
  30. x.setAttribute("href", "https://store.steampowered.com/app/" + appid + "/");
  31. }
  32. name.push(x.outerText)
  33. table.push(x.href)
  34. })
  35. console.log(name.join('\n'))
  36. console.log(table.join('\n'))
  37. }
  38.  
  39. function unauto(){
  40. $('.plc div.authi>a[rel=nofollow]').eq(0).after(`<span class="pipe">|</span><a href="javascript:void(0);" id="unauto_tab">标记</a>`);
  41. $('#unauto_tab').click(()=>print())
  42. }

QingJ © 2025

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