From 645e6cd1a964bb25977449e0a3f69a079ee2325c Mon Sep 17 00:00:00 2001 From: ikancupang <58947597+ikancupang@users.noreply.github.com> Date: Sat, 21 Dec 2019 18:13:02 +0700 Subject: [PATCH] Fix crowd contribute not working on al.ly --- injection_script.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/injection_script.js b/injection_script.js index 95e3df7..7168255 100644 --- a/injection_script.js +++ b/injection_script.js @@ -1428,20 +1428,6 @@ ensureDomLoaded(()=>{ { const regex=/var count = [0-9]*;var countdown = setInterval\(function\(\){\$\("[a-z\-.# ]+"\)(\.attr\("href","#pleasewait"\))?(\.attr\("disabled",""\))?\.html\(count( \+ ".+")?\);if \(count < 1\) {clearInterval\(countdown\);(\$\("[a-z\-.# ]+"\)\.attr\("href",|window\.location=)"(https?:\/\/[^"]+)"( \+ hash)?\)?(\.removeAttr\("disabled"\)\.removeClass\("disabled"\))?(\.html\(".+"\))?;}count--;}, 1000\);/ let contribute=false - document.querySelectorAll("script").forEach(script=>{ - let matches=regex.exec(script.textContent) - if(matches&&matches[5]) - { - if(contribute) - { - contributeAndNavigate(matches[5]) - } - else - { - safelyNavigate(matches[5]) - } - } - }) if(!bypassed) { domainBypass(/al\.ly|ally\.sh|dausel\.co/,()=>{ @@ -1459,6 +1445,20 @@ ensureDomLoaded(()=>{ } }) } + document.querySelectorAll("script").forEach(script=>{ + let matches=regex.exec(script.textContent) + if(matches&&matches[5]) + { + if(contribute) + { + contributeAndNavigate(matches[5]) + } + else + { + safelyNavigate(matches[5]) + } + } + }) clearInterval(dT) } },100)