|
|
@@ -4,6 +4,8 @@ let htmlText = $response.body || '';
|
|
|
let regex = /<div class="tgme_page_action">\s*<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>\s*<\/div>/;
|
|
|
let matches = htmlText.match(regex);
|
|
|
if (matches) {
|
|
|
+ let isTgToNcgNotify = lk.getVal('lkTgToNcgNotify', '');
|
|
|
+
|
|
|
let mContent = matches[0];
|
|
|
let originalHref = matches[1];
|
|
|
let originalText = matches[2];
|
|
|
@@ -21,8 +23,11 @@ if (matches) {
|
|
|
rHtmlText = rHtmlText.replace(regex2, 'var protoUrl=null');
|
|
|
|
|
|
htmlText = rHtmlText;
|
|
|
+ console.log(htmlText);
|
|
|
|
|
|
- lk.msg('', '在"Nicegram"中打开?', newHref);
|
|
|
+ if(!lk.isEmpty(isTgToNcgNotify)){
|
|
|
+ lk.msg('', '在"Nicegram"中打开?', newHref);
|
|
|
+ }
|
|
|
}
|
|
|
lk.done({
|
|
|
body: htmlText
|