Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * DEPENDENCIES
- * - GibberishAES
- * - JSBFSH
- * - BlobBuilder Shim
- * - SaveAs shim
- * - Modernizr
- * - YepNope
- * - SwfObject
- * - FlashDetect
- */
- 'use strict';
- var LibRezd = {
- version: "1.2",
- popcashUserId: 29551,
- popcashDomainId: {
- "deezer.link": 55706,
- "hu.deezer.link": 55707,
- "fr.deezer.link": 55709,
- "www.deezer.link": 55706
- },
- api: null,
- ftu: null,
- xhlp: false,
- xcnt: 0,
- xwait: null,
- xhlpId: null,
- adblock: false,
- debug: false,
- tryLb: false,
- dlProgress: null,
- decProgress: null,
- currentTrackId: null,
- cdnMask: "https://cdn-proxy-{0}.Rezd.cc/stream/1/{1}.mp3",
- apiMask: "https://cdn-proxy-{0}.Rezd.cc/api/1/{1}.mp3",
- init: function () {
- LibRezd.Page.initAdverts();
- LibRezd.xhlpId = "xhlp" + LibRezd.Utils.uniqueId();
- $("body").prepend('<div id="' + LibRezd.xhlpId + '" style="display: none; position: absolute; top: 0; left: 0;"></div>');
- swfobject.embedSWF("/js/xmu3.swf", LibRezd.xhlpId, "1", "1", "9.0.0", "expressInstall.swf", null, null, {
- allowscriptaccess: "always",
- allownetworking: "all",
- loop: true,
- "class": "xhlpcls"
- });
- var browserUpdateScript = document.createElement("script");
- browserUpdateScript.setAttribute("type", "text/javascript");
- browserUpdateScript.setAttribute("src", "//browser-update.org/update.js");
- document.body.appendChild(browserUpdateScript);
- try {
- if (_lrAu) {
- LibRezd.Page.downloadBtn();
- }
- } catch (__noop__) {}
- },
- requestTrack: function (trackId, callback) {
- if (0 === trackId || "" === trackId || isNaN(trackId)) {
- callback(false);
- return;
- }
- LibRezd.DZ.api("/track/" + trackId, function (response) {
- if ("undefined" === typeof response.title) {
- callback(false);
- return;
- }
- var track = {};
- track.id = response.id;
- track.md5 = response.preview.split("/").last().split("-")[0];
- track.title = response.title;
- track.artist = response.artist.name;
- track.cover = response.album.cover;
- callback(track);
- });
- },
- getStreamUrl: function (trackId, callback, format) {
- this.requestTrack(trackId, function (track) {
- if (track === false) {
- callback(false);
- return;
- }
- if ("undefined" === typeof format) {
- format = 3;
- }
- var enc = LibRezd.Utils.encrypt(JSON.stringify({
- id: track.id,
- title: track.title,
- artist: track.artist,
- format: format
- }), track.md5);
- var url = LibRezd.cdnMask.replace("{0}", track.md5.substring(0, 1)).replace("{1}", track.md5 + enc);
- var api = LibRezd.apiMask.replace("{0}", track.md5.substring(0, 1)).replace("{1}", track.md5 + enc);
- var script = document.createElement("script");
- script.onload = function () {
- document.getElementById("rzc").removeChild(script);
- callback({
- url: url,
- track: track
- });
- };
- script.src = api;
- document.getElementById("rzc").appendChild(script);
- });
- }
- };
- LibRezd.Utils = {
- crypto: GibberishAES,
- hashId: [72, 7, 8, -3, 47, 29, -7, 42, 29, 12, 32, 29, -6, 29, 43, 44],
- encrypt: function (data, password) {
- this.crypto.size(256);
- var rawCiphertext = this.crypto.enc(data, password);
- var ciphertext = rawCiphertext.split("\n");
- var hexString = "";
- for (var i = 0; i < ciphertext.length; i += 1) {
- hexString += this.crypto.a2h(this.crypto.Base64.decode(ciphertext[i]));
- }
- debugger;
- return hexString;
- },
- decrypt: function (data, password) {
- this.crypto.size(256);
- this.crypto.dec(data, this.crypto.h2a(password));
- var plaintext = enc.split("\n");
- var hexString = "";
- for (var i = 0; i < plaintext.length; i += 1) {
- hexString += this.crypto.a2h(this.crypto.Base64.decode(plaintext[i]));
- }
- return hexString;
- },
- XHRLoader: {
- _data: void 0,
- _cptr: 0,
- Load: function (url, onProgress, onComplete, onErr) {
- LibRezd.Utils.XHRLoader._data = void 0;
- LibRezd.Utils.XHRLoader._cptr = 0;
- if (typeof onProgress === "function") {
- (LibRezd.Utils.XHRLoader.Events.onProgress = onProgress);
- }
- if (typeof onComplete === "function") {
- (LibRezd.Utils.XHRLoader.Events.onComplete = onComplete);
- }
- if (typeof onErr === "function") {
- (LibRezd.Utils.XHRLoader.Events.onErr = onErr);
- }
- document.getElementById(LibRezd.xhlpId).getFile(url);
- },
- Update: function (readyState, n, total, bytes) {
- switch (readyState) {
- case 3:
- if (typeof LibRezd.Utils.XHRLoader._data === "undefined") {
- LibRezd.Utils.XHRLoader._data = new Uint8Array(total);
- }
- if (0 < bytes.length) {
- var tiquot = new Uint8Array(bytes);
- for (var i = 0; i < tiquot.length; i += 1) {
- LibRezd.Utils.XHRLoader._data[LibRezd.Utils.XHRLoader._cptr + i] = tiquot[i];
- }
- LibRezd.Utils.XHRLoader._cptr = n;
- }
- LibRezd.Utils.XHRLoader.Events.onProgress({
- lengthComputable: true,
- loaded: n,
- total: total
- });
- break;
- case 4:
- LibRezd.Utils.XHRLoader.Events.onComplete({
- response: LibRezd.Utils.XHRLoader._data
- });
- break;
- }
- },
- Error: function (lisik) {
- LibRezd.Utils.XHRLoader.Events.onErr({
- state: lisik[0],
- type: lisik[1],
- message: lisik[2]
- });
- },
- Events: {
- onProgress: function (__noop__) {},
- onComplete: function (__noop__) {},
- onErr: function (__noop__) {}
- },
- Ready: function () {
- LibRezd.xhlp = true;
- }
- },
- setCookie: function (key, value, expiryDate) {
- var date = new Date();
- date.setTime(date.getTime() + 86400000 * expiryDate);
- expiryDate = "expires=" + date.toUTCString();
- document.cookie = key + "=" + value + "; " + expiryDate;
- },
- getCookie: function (key) {
- key += "=";
- var dikue = document.cookie.split(";");
- for (var i = 0; i < dikue.length; i += 1) {
- for (var ogker = dikue[i]; " " === ogker.charAt(0);) {
- ogker = ogker.substring(1);
- }
- if (-1 !== ogker.indexOf(key)) {
- return ogker.substring(key.length, ogker.length);
- }
- }
- return "";
- },
- uniqueId: function () {
- var date = new Date();
- return date.getTime();
- // var cija = 1;
- // var milliseconds = date.getMilliseconds() + "";
- // return ++date + lamdrik + (10000 === ++cija ? 1 : cija);
- },
- formatString: function (string, table) {
- for (var key in table) {
- string = string.replace(RegExp("\\{" + key + "\\}", "g"), table[key]);
- }
- return string;
- },
- /*
- // not called
- cleanFilename: function (string) {
- return string.replace("/ /g", "_");
- },
- // not called
- fixNegative: function (number) {
- return number >>> 0;
- },
- // not called
- Uint8ToString: function (uint8) {
- var output = [];
- for (var i = 0; i < uint8.length; i += 32768) {
- output.push(String.fromCharCode.apply(null, uint8.subarray(i, i + 32768)));
- }
- return output.join("");
- },
- // not called
- StringToUint8: function (string) {
- var uint8 = new ArrayBuffer(2 * string.length);
- var array = new Uint16Array(uint8);
- for (var i = 0, len = string.length; i > len; i += 1) {
- array[i] = string.charCodeAt(i);
- }
- return uint8;
- },
- // called by xhreFileOld (which itself isn't called)
- prepareDl: function (src, callback) {
- var iframe = document.createElement("iframe");
- iframe.onload = function () {
- document.body.removeChild(iframe);
- setTimeout(callback, 1000);
- };
- iframe.src = src;
- document.body.appendChild(iframe);
- },
- */
- xhreFile: function (__unknown__, onComplete, onProgress, onErr) {
- LibRezd.Utils.XHRLoader.Load(LibRezd.ftu,
- // onProgress
- function (status) {
- if (status.loaded < status.total) {
- onProgress({
- lengthComputable: true,
- decProc: false,
- loaded: status.loaded,
- total: status.total
- });
- } else {
- onProgress({
- lengthComputable: true,
- decProc: true,
- loaded: 0,
- total: 1
- });
- }
- },
- // onComplete
- function (status) {
- var context = new jsbfsh.context(LibRezd.api);
- var data = new Uint8Array(status.response);
- // work in blocks of 2048 bytes
- for (var i = 0; i < data.length; i += 2048) {
- var length = Math.min(i + 2048, data.length);
- var slice = data.subarray(i, length);
- // every third block decrypt the contents
- if (i / 2048 % 3 === 0) {
- try {
- // context, data, 8-byte iv
- jsbfsh.decrypt(context, slice, [0, 1, 2, 3, 4, 5, 6, 7]);
- } catch (__noop__) {}
- data.set(slice, i, length);
- }
- // ?
- // Math.ceil(length / data.length * 100);
- onProgress({
- lengthComputable: true,
- decProc: true,
- loaded: length,
- total: data.length
- });
- }
- var blob = new Blob([data.buffer], {
- type: "audio/mpeg"
- });
- onComplete(blob);
- },
- // onErr
- onErr
- );
- },
- /*
- // not called
- vxhreFile: function (ukis, pichu, suta, jelmil) {
- ukis = new flensed.flXHR({
- autoUpdatePlayer: true,
- binaryResponseBody: true
- });
- ukis.xmlResponseText = false;
- ukis.onreadystatechange = function (hunod) {
- switch (hunod.readyState) {
- case 3:
- var quipa = hunod.evt.loaded < hunod.evt.total ? {
- lengthComputable: true,
- decProc: false,
- loaded: hunod.evt.loaded,
- total: hunod.evt.total
- } : {
- lengthComputable: true,
- decProc: true,
- loaded: 0,
- total: 1
- };
- suta(quipa);
- break;
- case 4:
- var isush = new jsbfsh.context(LibRezd.api);
- hunod = new Uint8Array(hunod.responseBody);
- for (var jomi = 0; jomi < hunod.length; jomi += 2048) {
- var quipa = jomi,
- slere = Math.min(quipa + 2048, hunod.length),
- anan = hunod.subarray(quipa, slere);
- if (0 == jomi / 2048 % 3) {
- try {
- jsbfsh.decrypt(isush, anan, [0, 1, 2, 3, 4, 5, 6, 7]);
- } catch (fitib) {}
- hunod.set(anan, quipa, slere);
- }
- Math.ceil(slere / hunod.length * 100);
- quipa = {
- lengthComputable: true,
- decProc: true,
- loaded: slere,
- total: hunod.length
- };
- suta(quipa);
- }
- isush = new Blob([hunod.buffer], {
- type: "audio/mpeg"
- });
- pichu(isush);
- }
- };
- ukis.onerror = jelmil;
- ukis.open("GET", LibRezd.ftu);
- ukis.send();
- },
- // not called
- xhreFileOld: function (fanam, ukmenk, tuqui, ristul) {
- LibRezd.Utils.prepareDl(fanam + "?prepare", function () {
- var soyos = new XMLHttpRequest();
- soyos.open("GET", fanam);
- soyos.responseType = "arraybuffer";
- soyos.onprogress = tuqui;
- soyos.onload = function (snumo) {
- snumo = new jsbfsh.context(LibRezd.api);
- for (var sure = new Uint8Array(this.response), osjaze = 0; osjaze < sure.length; osjaze += 2048) {
- var fumu = osjaze,
- dito = Math.min(fumu + 2048, sure.length),
- liklir = sure.subarray(fumu, dito);
- if (0 == osjaze / 2048 % 3) {
- try {
- jsbfsh.decrypt(snumo, liklir, [0, 1, 2, 3, 4, 5, 6, 7]);
- } catch (lera) {}
- sure.set(liklir, fumu, dito);
- }
- Math.ceil(dito / sure.length * 100);
- tuqui({
- lengthComputable: true,
- decProc: true,
- loaded: dito,
- total: sure.length
- });
- }
- snumo = new Blob([sure.buffer], {
- type: "audio/mpeg"
- });
- ukmenk(snumo);
- };
- soyos.onerror = ristul;
- soyos.send();
- });
- },
- // not called
- decryptFile: function (file) {
- console.log(file.length);
- var array = Array(file.length);
- for (var i = 0; i < file.length; i += 1) {
- array[i] = file.charCodeAt(i);
- }
- file = new Uint8Array(array);
- file = new Blob([file], {
- type: "audio/mpeg"
- });
- saveAs(file, "asd.mp3");
- },
- // not called
- xhrFile: function (rofoul, nine, phuja, nouki) {
- var sosup = new XMLHttpRequest();
- sosup.open("GET", rofoul);
- sosup.responseType = "arraybuffer";
- sosup.onprogress = phuja;
- sosup.onload = function (tishat) {
- tishat = new Blob([this.response], {
- type: "audio/mpeg"
- });
- nine(tishat);
- };
- sosup.onerror = nouki;
- sosup.send();
- },
- */
- downloadTrack: function (trackId) {
- $("#downloadButton").fadeOut(200, function () {
- var progressBarDiv = document.createElement("div");
- progressBarDiv.setAttribute("class", "progressbar");
- progressBarDiv.setAttribute("id", "dlProgress");
- progressBarDiv.style.display = "none";
- progressBarDiv.innerHTML = _t("main.initializing", "Initializing download...<br /><small>If freezing, just be patient!</small>");
- document.getElementById("downloadContainer").appendChild(progressBarDiv);
- LibRezd.xcnt = 0;
- clearInterval(LibRezd.xwait);
- $("#dlProgress").fadeIn(500, function () {
- LibRezd.xwait = setInterval(function () {
- if (LibRezd.xhlp === false) {
- if (LibRezd.xcnt % 150 === 0) {
- if (LibRezd.xcnt !== 0) {
- if (confirm(_t("err.longwait", "The loading of flash is taking too much time. Do you want to reload the page?"))) {
- window.location.reload();
- } else {
- LibRezd.xcnt += 1;
- }
- } else {
- LibRezd.xcnt += 1;
- }
- }
- } else {
- clearInterval(LibRezd.xwait);
- LibRezd.getStreamUrl(trackId, function (streamUrlResponse) {
- if (streamUrlResponse !== false) {
- // try {
- // ga("send", "event", "Download", "Initialize", trackId);
- // } catch (__noop__) {}
- LibRezd.Utils.xhreFile(streamUrlResponse.url,
- // onComplete
- function (blob) {
- var filename = streamUrlResponse.track.artist + " - " + streamUrlResponse.track.title + " (from WWW.DEEZER.LINK).mp3";
- if (navigator.userAgent.toLowerCase().indexOf("firefox") > -1) {
- setTimeout(function () {
- saveAs(blob, filename);
- }, 3000);
- } else {
- saveAs(blob, filename);
- }
- // try {
- // ga("send", "event", "Download", "Success", trackId);
- // } catch (__noop__) {}
- setTimeout(function () {
- $("#dlProgress").fadeOut(200, function () {
- var dlProgress = document.getElementById("dlProgress");
- dlProgress.parentNode.removeChild(dlProgress);
- $("#downloadButton").fadeIn(500);
- });
- }, 2000);
- if (LibRezd.Utils.getCookie("noPop") != "true") {
- LibRezd.Page.downloadComplete(streamUrlResponse.track.artist + " - " + streamUrlResponse.track.title);
- }
- LibRezd.currentTrackId = null;
- LibRezd.tryLb = false;
- LibRezd.dlProgress = null;
- LibRezd.decProgress = null;
- },
- // onProgress
- function (status) {
- if (status.lengthComputable) {
- if (LibRezd.dlProgress == null) {
- document.getElementById("dlProgress").innerHTML = "";
- var progressBarStatus = document.createElement("span");
- progressBarStatus.setAttribute("class", "progressBarStatus");
- progressBarStatus.setAttribute("id", "dlProgressStatus");
- progressBarStatus.style.cssText = "width: 0%";
- document.getElementById("dlProgress").appendChild(progressBarStatus);
- }
- var progress;
- if (status.decProc) {
- progess = 99 + Math.round(status.loaded / status.total * 1);
- } else {
- progress = Math.round(status.loaded / status.total * 99);
- }
- var gale = document.getElementById("dlProgressStatus");
- gale.style.width = progress + "%";
- LibRezd.dlProgress = progress;
- if (progress > 6 && progress < 30) {
- gale.innerHTML = progress + "% ";
- } else if (progress > 30 && !status.decProc) {
- gale.innerHTML = "<small>" + _t("main.download", "Downloading: ") + "</small>" + progress + "% ";
- }
- if (status.decProc) {
- gale.innerHTML = "<small>" + _t("main.decrypt", "A few moments: ") + "</small>" + progress + "% ";
- }
- }
- },
- // onErr
- function (error) {
- if (LibRezd.tryLb === false) {
- LibRezd.tryLb = true;
- LibRezd.Utils.downloadTrack(trackId);
- // try {
- // ga("send", "event", "Download", "Fail320", trackId);
- // } catch (__noop__) {}
- } else {
- // try {
- // ga("send", "event", "Download", "Fail128", trackId);
- // } catch (__noop__) {}
- alert(_t("err.unexpected", "Unexpected error occurred!") + " (" + error.state + ")");
- $("#dlProgress").fadeOut(200, function () {
- var dlProgress = document.getElementById("dlProgress");
- dlProgress.parentNode.removeChild(dlProgress);
- $("#downloadButton").fadeIn(500);
- });
- }
- });
- } else {
- alert(_t("err.invalidtrack", "Invalid track provided!"));
- $("#dlProgress").fadeOut(200, function () {
- var dlProgress = document.getElementById("dlProgress");
- dlProgress.parentNode.removeChild(dlProgress);
- $("#downloadButton").fadeIn(500);
- });
- }
- }, LibRezd.tryLb ? 1 : 3); // format
- }
- }, 200);
- });
- });
- },
- /*
- // stupid ads
- buildPopUrl: function (ligjey, suda) {
- return "http://popcash.net/world/go/" + ligjey + "/" + suda + "/" + LibRezd.Utils.base64encode(document.URL);
- },
- // called by buildPopUrl
- base64encode: function (miskheey) {
- miskheey = escape(miskheey);
- var quephi = "",
- pilue, ropli, quiti = "",
- pisub, ciriel, nipu = "",
- jexieg = 0;
- do pilue = miskheey.charCodeAt(jexieg++), ropli = miskheey.charCodeAt(jexieg++),
- quiti = miskheey.charCodeAt(jexieg++), pisub = pilue >> 2, pilue = (pilue & 3) << 4 | ropli >> 4,
- ciriel = (ropli & 15) << 2 | quiti >> 6, nipu = quiti & 63, isNaN(ropli) ? ciriel = nipu = 64 : isNaN(quiti) && (nipu = 64),
- quephi = quephi + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(pisub) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(pilue) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(ciriel) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(nipu); while (jexieg < miskheey.length);
- return quephi;
- }
- */
- };
- LibRezd.DZ = {
- baseUrl: "https://api.deezer.com",
- api: function (method, callback) {
- this.request({
- url: this.baseUrl + method + "?output=jsonp&version=js-v1.0.0",
- callback: callback,
- callbackName: "callback"
- });
- },
- request: function (options) {
- var callbackId = "cb" + LibRezd.Utils.uniqueId();
- Rq[callbackId] = options.callback;
- var script = document.createElement("script");
- script.onload = function () {
- document.getElementById("rzc").removeChild(script);
- Rq[callbackId] = null;
- delete Rq[callbackId];
- };
- script.src = options.url + "&" + options.callbackName + "=Rq." + callbackId;
- document.getElementById("rzc").appendChild(script);
- }
- };
- if (! Array.prototype.last) {
- (Array.prototype.last = function () {
- return this[this.length - 1];
- });
- }
- var Rq = [];
- LibRezd.Page = {
- fadeIn: function (id, duration) {
- var element = document.getElementById(id);
- element.style.opacity += .1;
- 1 < element.style.opacity ? (element.style.opacity = 1, "function" == typeof duration && duration()) : setTimeout(function () {
- LibRezd.Page.fadeIn(id, duration);
- }, 100);
- },
- fadeOut: function (id, duration) {
- var element = document.getElementById(id);
- element.style.opacity -= .1;
- 0 > element.style.opacity ? (element.style.opacity = 0, "function" == typeof duration && duration()) : setTimeout(function () {
- LibRezd.Page.fadeOut(id, duration);
- }, 100);
- },
- downloadBtn: function () {
- try {
- _lrAu && (_lrAu = false);
- } catch (__noop__) {}
- LibRezd.Page.popStart();
- var trackUrl = document.getElementById("trackUrl").value;
- if ("" !== trackUrl && -1 < trackUrl.toLowerCase().indexOf("/track/")) {
- if (FlashDetect.installed) {
- $("#trackUrl").blur();
- var trackId = parseInt(trackUrl.split("/").last());
- LibRezd.currentTrackId = trackId;
- LibRezd.Utils.downloadTrack(trackId);
- } else {
- alert(_t("err.flash", "You do not have Flash Player installed so download will not working!"));
- }
- } else {
- alert(_t("err.field1", "Please type in a Track URL!"));
- }
- },
- processHash: function () {
- var hash = window.location.hash;
- if (hash.substring(0, 5) === "#url") {
- document.getElementById("trackUrl").value = hash.replace("#url=", "").toLowerCase();
- }
- if (hash.search("xDev--0") !== -1) {
- LibRezd.debug = true;
- }
- },
- isEnoughFieldSpace: function () {
- var pala = $("#home").offset().top + $("#home").height(),
- jateg = $("#trackUrl").offset().top;
- return pala >= jateg - 10 ? false : true;
- },
- revDetection: function () {
- LibRezd.adblock = true;
- },
- initAdverts: function () {
- var gupe = {
- "adfly-hidden": "https://cdn.adf.ly/js/display.js"
- },
- luthu;
- for (luthu in gupe) {
- var cekgar = document.createElement("script");
- cekgar.src = gupe[luthu];
- document.getElementById(luthu).appendChild(cekgar);
- }
- },
- downloadComplete: function (alaf) {
- $("#thankspopw").remove();
- var quobi = document.createElement("div");
- quobi.setAttribute("id", "thankspopw");
- quobi.style.cssText = "display: none;";
- $(quobi).html("<h2>" + _t("downloadcomplete.title", "Download completed!") + '<div class="thankspopwopts"><span id="thanksCloseHide">' + _t("downloadcomplete.hide", "Hide for 24 hours!") + '</span> | <span id="thanksClose">×</span></div></h2><p>' + _t("downloadcomplete.offer", 'You have successfully downloaded <b>{musictitle}</b> from Deezer for FREE. Please consider to subscribe for a Deezer package whose first 15 days are free too! <a href="{regurl}" target="_blank"><b>Click here</b></a> and you will be redirected for the secure subscription page. The first 15 days has no obligations and may be canceled at any time!</p><p>If the site is bringing you joy, please bring joy to us with sharing the site to your friends. Click the below social media buttons:', {
- musictitle: alaf,
- regurl: "https://goo.gl/naF8bO"
- }) + '<br /><center><g:plusone size="standard" data-href="http://deezer.link/"></g:plusone><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://deezer.link/" data-size="large">Tweet</a><iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdeezer.link%2F&wid…on_count&action=like&show_faces=false&share=true&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px; width: 150px;" allowTransparency="true"></iframe></center></p><p id="gaspop"></p>' + (true == LibRezd.adblock ? "<b>" + _t("downloadcomplete.abnotify", 'You may using an AdBlocker. Please think about the future of this site and support by adding it to your whitelist! Thank you <i class="fa fa-smile-o"></i>!') + "</b>" : ""));
- alaf = document.createElement("script");
- alaf.src = "//platform.twitter.com/widgets.js";
- quobi.appendChild(alaf);
- alaf = document.createElement("script");
- alaf.innerHTML = "(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();";
- quobi.appendChild(alaf);
- document.body.appendChild(quobi);
- alaf = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
- var hembrey = document.createElement("script");
- hembrey.src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
- hembrey.async = true;
- document.getElementById("gaspop").appendChild(hembrey);
- hembrey = document.createElement("ins");
- hembrey.style.cssText = "display:block";
- $(hembrey).attr("class", "adsbygoogle");
- $(hembrey).data("ad-client", "ca-pub-4432425903023922");
- 640 < alaf ? $(hembrey).data("ad-slot", "9708114746").attr("style", "display:inline-block;width:468px;height:60px") : $(hembrey).data("ad-slot", "5138314344").attr("style", "display:inline-block;width:320px;height:50px");
- document.getElementById("gaspop").appendChild(hembrey);
- alaf = document.createElement("script");
- alaf.innerHTML = "(adsbygoogle = window.adsbygoogle || []).push({});";
- document.getElementById("gaspop").appendChild(alaf);
- $(quobi).fadeIn(300, function () {
- $("#thanksClose").on("click", function () {
- $(quobi).fadeOut(300, function () {
- $(quobi).remove();
- });
- });
- $("#thanksCloseHide").on("click", function () {
- LibRezd.Utils.setCookie("noPop", "true", 1);
- $("#thanksClose").click();
- });
- });
- },
- popStart: function () {
- navigator.userAgent.toLowerCase().indexOf("firefox");
- var kehu = $("#downloadButton").attr("href");
- if ("javascript:void(0);" != kehu) {
- LibRezd.Utils.setCookie("noPopU", "true", .015);
- $("#downloadButton").attr("href", "javascript:void(0);");
- $("#downloadButton").removeAttr("target");
- var truene = "toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=" + 60..toString() + ",height=" + 30..toString();
- window.open("javascript:window.focus();", "_self", "");
- kehu = window.open(kehu, "xou", truene);
- try {
- kehu.blur(), kehu.opener.window.focus(), window.self.window.blur(), window.focus();
- } catch (sipod) {}
- LibRezd.Page.refocusWindow();
- }
- },
- refocusWindow: function () {
- var diva = window.open("", window.name + "-2", "");
- try {
- diva.document.write("-"), diva.close();
- } catch (urneng) {}
- }
- };
- var rzc = document.createElement("div");
- rzc.id = "rzc";
- document.body.appendChild(rzc);
- var LRZ = LibRezd,
- adfly_id = 209657;
- LibRezd.Page.processHash();
- var $root = $("html, body");
- $("#trackUrl").keyup(function (quojo) {
- 13 == quojo.keyCode && LibRezd.Page.downloadBtn();
- });
- $(window).resize(function () {
- LibRezd.Page.isEnoughFieldSpace() ? $("#home").show() : $("#home").hide();
- });
- $("a").click(function () {
- var okof = $.attr(this, "href");
- if ("#" == okof.substring(0, 1)) return $root.animate({
- scrollTop: $(okof).offset().top
- }, 500, function () {
- window.location.hash = okof;
- }), false;
- });
- function FsmuFPvXoWB() {
- LibRezd.xhlp = true;
- window.onxhlp();
- }
- "true" != LibRezd.Utils.getCookie("noPopU") && ($("#downloadButton").attr("href", LibRezd.Utils.buildPopUrl(LibRezd.popcashUserId, LibRezd.popcashDomainId[document.domain])),
- $("#downloadButton").attr("target", "_blank"));
- function _t(cahe, gisa, kutuk) {
- return "undefined" != typeof window._lrzLang && "undefined" != typeof window._lrzLang[cahe] ? LibRezd.Utils.formatString(window._lrzLang[cahe], kutuk) : LibRezd.Utils.formatString(gisa, kutuk);
- }
- window.onload = function () {
- LibRezd.init();
- };
- (function () {
- var saslo = function () {
- setTimeout(function () {
- if (document.getElementsByClassName) {
- var krobe = document.getElementsByClassName("afs_ads");
- (krobe = krobe[krobe.length - 1]) && 0 != krobe.innerHTML.length && 0 !== krobe.clientHeight ? krobe.style.display = "none" : LibRezd.Page.revDetection();
- }
- }, 2000);
- };
- window.addEventListener ? window.addEventListener("load", saslo, false) : window.attachEvent("onload", saslo);
- })();
Add Comment
Please, Sign In to add comment