shawenguan 2 năm trước cách đây
mục cha
commit
9221a18cc3
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      Scripts/tghelper/tgLinksHelper.js

+ 4 - 3
Scripts/tghelper/tgLinksHelper.js

@@ -15,10 +15,11 @@ if (matches) {
     let ncgDivHtml = `<div class="tgme_page_action"><a class="tgme_action_button_new shine" href="${newHref}">${newText}</a></div>`;
     let rHtmlText = htmlText.replace(mContent, mContent+'\n'+ncgDivHtml);
 
-    // let regex2 = /var\s*protoUrl\s*=\s*"([\S]+)"/;
-    // rHtmlText = rHtmlText.replace(regex2, 'var protoUrl=null');
-
     rHtmlText = rHtmlText.replace('if\s*\(true\)\s*\{', 'if (false) {');
+
+    let regex2 = /var\s*protoUrl\s*=\s*"([\S]+)"/;
+    rHtmlText = rHtmlText.replace(regex2, 'var protoUrl=null');
+
     htmlText = rHtmlText;
 
     lk.msg('', '在"Nicegram"中打开?', newHref);