We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419802f commit 6d01f97Copy full SHA for 6d01f97
1 file changed
HacgGodTurn.js
@@ -479,7 +479,7 @@
479
link = document.getElementsByTagName('a');
480
}
481
for (var i = 0, k = link.length; i < k; i++) {
482
- if (/.*http:[^\.]*(\.)?hacg\./i.test(link[i].href)) {
+ if (isHttps && /.*http:[^\.]*(\.)?hacg\./i.test(link[i].href)) {
483
link[i].href = link[i].href.replace(/http/, 'https');
484
}else if(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/.test(link[i].href)){
485
link[i].href = link[i].href.replace(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/, '');
0 commit comments