Skip to content

Commit 6d01f97

Browse files
committed
fix
1 parent 419802f commit 6d01f97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HacgGodTurn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
link = document.getElementsByTagName('a');
480480
}
481481
for (var i = 0, k = link.length; i < k; i++) {
482-
if (/.*http:[^\.]*(\.)?hacg\./i.test(link[i].href)) {
482+
if (isHttps && /.*http:[^\.]*(\.)?hacg\./i.test(link[i].href)) {
483483
link[i].href = link[i].href.replace(/http/, 'https');
484484
}else if(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/.test(link[i].href)){
485485
link[i].href = link[i].href.replace(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/, '');

0 commit comments

Comments
 (0)