BTluckyHelper

come as you are

  1. // ==UserScript==
  2. // @name BTluckyHelper
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1.1
  5. // @description come as you are
  6. // @author PeerLessSoul
  7. // @match http://127.0.0.1:16601/*
  8. // @require https://code.jquery.com/jquery-3.6.0.min.js
  9. // @icon none
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14.  
  15. (function() {
  16. 'use strict';
  17. var $ = $ || window.$;
  18. // Your code here...
  19. if(location.href.includes("/#/stun",0))
  20. {
  21. var checkpk= setInterval(()=>{
  22. let localport=$("#pane-list>div.el-scrollbar>div.el-scrollbar__wrap.el-scrollbar__wrap--hidden-default>div>div>div>div>table>tbody>tr:nth-child(2)>td.el-descriptions__cell.el-descriptions__content.is-bordered-content>span:nth-child(1)>span").text();
  23. let outport=$("#pane-list>div.el-scrollbar>div.el-scrollbar__wrap.el-scrollbar__wrap--hidden-default>div>div>div>div>table>tbody>tr:nth-child(2)>td.el-descriptions__cell.el-descriptions__content.is-bordered-content>span.el-tag.el-tag--primary.el-tag--small.el-tag--dark.el-tooltip__trigger>span").text().split(":")
  24. let newDiv = document.createElement("span");
  25. newDiv.style="font-size: 20px;text-align: left;position: inherit; white-space: pre;"
  26. newDiv.href = "#";
  27. newDiv.innerText = "路由器映射外部端口:"+localport+
  28. " 路由器映射内部端口:"+outport[1] +"\n BT 下载器端口设置:"+outport[1] ;
  29. $("#pane-list > div.el-scrollbar > div.el-scrollbar__wrap.el-scrollbar__wrap--hidden-default > div > div > div > div > table").after(newDiv);
  30. clearInterval(checkpk);
  31. },500);
  32.  
  33. }
  34.  
  35.  
  36. })();

QingJ © 2025

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