shawenguan 2 ani în urmă
părinte
comite
e33e6a931f
1 a modificat fișierele cu 4 adăugiri și 5 ștergeri
  1. 4 5
      Scripts/tglinks/tglinks.js

+ 4 - 5
Scripts/tglinks/tglinks.js

@@ -4,12 +4,11 @@ if(!$response){
     return
 }
 let html = $response.body || '';
-let regex = /<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>/;
-
 console.log("###tglinks###");
-console.log(html)
-// 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);
+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);
+console.log(JSON.stringify(matches));
+
 // if (matches) {
 //     let allContent = matches[0];
 //     let originalHref = matches[1];