shawenguan 2 年之前
父節點
當前提交
329658b818
共有 1 個文件被更改,包括 2 次插入1 次删除
  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
 });