Created
April 28, 2014 22:05
-
-
Save MaciekBaron/11385396 to your computer and use it in GitHub Desktop.
Adf.ly automated download script
This file contains hidden or 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
// Can be used with e.g. Control Freak | |
if (window.location.pathname === "/ad/locked") { | |
var time = +$("#countdown").text() || 6; | |
setTimeout(function () { | |
window.location.href = window.location.href; | |
}, time * 1000); | |
} else { | |
var myfunc = function () { | |
if (typeof $("#skip_button").attr("href") == "undefined" || $("#skip_button").attr("href") == null || $("#skip_button").attr("href").length === 0) { | |
setTimeout(myfunc, 500); | |
} else { | |
window.location.href = $("#skip_button").attr("href"); | |
} | |
} | |
myfunc(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment