|
|
@@ -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');
|
|
|
+ let regex2 = /var\s*protoUrl\s*=\s*"([\S]+)";/;
|
|
|
+ rHtmlText = rHtmlText.replace(regex2, 'var protoUrl=null;');
|
|
|
+
|
|
|
+ rHtmlText = rHtmlText.replace('if\s*\(true\)\s*\{', 'if (false) {');
|
|
|
|
|
|
- // rHtmlText = rHtmlText.replace('if\s*\(true\)\s*\{', 'if (false) {');
|
|
|
htmlText = rHtmlText;
|
|
|
|
|
|
lk.msg('', '在"Nicegram"中打开?', newHref);
|