shawenguan há 2 anos atrás
pai
commit
cab9d8e0bd
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      Scripts/tghelper/tgLinksHelper.js

+ 3 - 4
Scripts/tghelper/tgLinksHelper.js

@@ -15,11 +15,10 @@ 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');
 
+    rHtmlText = rHtmlText.replace('if\s*\(true\)\s*\{', 'if (false) {');
     htmlText = rHtmlText;
 
     lk.msg('', '在"Nicegram"中打开?', newHref);