diff --git a/tool/userscripts/cf.color.user.js b/tool/userscripts/cf.color.user.js index 7528deaf68..a0e041f3b8 100644 --- a/tool/userscripts/cf.color.user.js +++ b/tool/userscripts/cf.color.user.js @@ -26,10 +26,10 @@ function scanme() { if (u.hostname != fqdn_self && (u.protocol == 'https:' || u.protocol == 'http:')) { l.setAttribute('xcf', 'q'); let fqdn = u.hostname; - if (fqdns[fqdn] == undefined) { - fqdns[fqdn] = []; - } if (!/^(|(.*)\.)archive\.org$/.test(fqdn)) { + if (fqdns[fqdn] == undefined) { + fqdns[fqdn] = []; + } fqdns[fqdn].push(l); } } diff --git a/tool/userscripts/cf.remove.user.js b/tool/userscripts/cf.remove.user.js index d261c55b56..a76d837c3d 100644 --- a/tool/userscripts/cf.remove.user.js +++ b/tool/userscripts/cf.remove.user.js @@ -26,10 +26,10 @@ function scanme() { if (u.hostname != fqdn_self && (u.protocol == 'https:' || u.protocol == 'http:')) { l.setAttribute('xcf', 'q'); let fqdn = u.hostname; - if (fqdns[fqdn] == undefined) { - fqdns[fqdn] = []; - } if (!/^(|(.*)\.)archive\.org$/.test(fqdn)) { + if (fqdns[fqdn] == undefined) { + fqdns[fqdn] = []; + } fqdns[fqdn].push(l); } } diff --git a/tool/userscripts/cf.replace.user.js b/tool/userscripts/cf.replace.user.js index b57a8f1b4f..1bf3cc014d 100644 --- a/tool/userscripts/cf.replace.user.js +++ b/tool/userscripts/cf.replace.user.js @@ -26,10 +26,10 @@ function scanme() { if (u.hostname != fqdn_self && (u.protocol == 'https:' || u.protocol == 'http:')) { l.setAttribute('xcf', 'q'); let fqdn = u.hostname; - if (fqdns[fqdn] == undefined) { - fqdns[fqdn] = []; - } if (!/^(|(.*)\.)archive\.org$/.test(fqdn)) { + if (fqdns[fqdn] == undefined) { + fqdns[fqdn] = []; + } fqdns[fqdn].push(l); } }