shawenguan 2 năm trước cách đây
mục cha
commit
329658b818
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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>/;
 
 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);
 // if (matches) {
@@ -27,6 +28,6 @@ console.log("###tglinks###");
 //     newHtmlStr = newHtmlStr.replace('if\s*\(true\)\s*\{', 'if (false) {');
 //     html = newHtmlStr;
 // }
-$.done({
+$done({
   body: html
 });