shawenguan il y a 2 ans
Parent
commit
329658b818
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Scripts/tglinks/tglinks.js

+ 2 - 1
Scripts/tglinks/tglinks.js

@@ -7,6 +7,7 @@ let html = $response.body || '';
 let regex = /<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>/;
 let regex = /<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>/;
 
 
 console.log("###tglinks###");
 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 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 matches = html.match(regex);
 // if (matches) {
 // if (matches) {
@@ -27,6 +28,6 @@ console.log("###tglinks###");
 //     newHtmlStr = newHtmlStr.replace('if\s*\(true\)\s*\{', 'if (false) {');
 //     newHtmlStr = newHtmlStr.replace('if\s*\(true\)\s*\{', 'if (false) {');
 //     html = newHtmlStr;
 //     html = newHtmlStr;
 // }
 // }
-$.done({
+$done({
   body: html
   body: html
 });
 });