- Put comma separated list of domains in the domains variable (no spaces).
- Run in JavaScript console.
Last active
August 29, 2015 14:05
-
-
Save octalmage/628ae0639755ab59f308 to your computer and use it in GitHub Desktop.
Add domains to MaxCDN whitelist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domains="one.com,two.com,three.com" | |
domains=domains.split(","); | |
var current=0; | |
process(); | |
var t=setInterval(process, 1000) | |
function process() | |
{ | |
console.log(domains[current]) | |
$("#valid_referers_tag").click(); | |
$("#valid_referers_tag").val(domains[current]); | |
e = jQuery.Event("keypress"); | |
e.which = 13; | |
e.keyCode = 13; | |
$("#valid_referers_tag").trigger(e); | |
current++; | |
if (current>=domains.length) | |
{ | |
clearInterval(t); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment