shawenguan 2 years ago
parent
commit
1e35317156
2 changed files with 2 additions and 3 deletions
  1. 2 2
      Scripts/tglinks/tglinks.js
  2. 0 1
      Scripts/tglinks/tglinks.rewirte.quanx.conf

+ 2 - 2
Scripts/tglinks/tglinks.js

@@ -4,10 +4,10 @@ if(!$response){
     return
 }
 let html = $response.body || '';
-let regex = /<a class="tgme_action_button_new shine" href="([^"]+)">([^<]+)<\/a>/;
+let regex = /<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>/;
 
 console.log("###tglinks###");
-let regex = /<div class="tgme_page_action">\s*<a class="tgme_action_button_new shine" href="([^"]+)">([^<]+)<\/a>\s*<\/div>/;
+let regex = /<div class="tgme_page_action">\s*<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>\s*<\/div>/;
 let matches = html.match(regex);
 if (matches) {
     let allContent = matches[0];

+ 0 - 1
Scripts/tglinks/tglinks.rewirte.quanx.conf

@@ -1,4 +1,3 @@
 hostname = t.me
 
-^https:\/\/t.me url script-request-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/tglinks/tglinks.js
 ^https:\/\/t.me url script-response-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/tglinks/tglinks.js