Advertisement
psycholyzern

Untitled

Apr 20th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function smuleError(e) {}
  2. function r(g) {
  3.   var k = {}, a, l = 0,
  4.     d, c = 0,
  5.     b, e = "",
  6.     f = String.fromCharCode,
  7.     h = g.length;
  8.   for (a = 0; 64 > a; a++) k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a)] = a;
  9.   for (d = 0; d < h; d++) for (a = k[g.charAt(d)], l = (l << 6) + a, c += 6; 8 <= c;)((b = l >>> (c -= 8) & 255) || d < h - 2) && (e += f(b));
  10.   return e
  11. }
  12. s = r("TT18WlV5TXVeLXFXYn1WTF5qSmR9TXYpOHklYlFXWGY+SUZCRGNKPiU0emcyQ2l8dGVsamBkVlpA");
  13.  
  14. function processRecording(g) {
  15.   if (null === g || "string" !== typeof g || 2 > g.length || 0 !== g.indexOf("e:")) return g;
  16.   for (var k = r(g.substring(2)), a = [], h = 0, d, c = "", b = 0; 256 > b; b++) a[b] = b;
  17.   for (b = 0; 256 > b; b++) h = (h + a[b] + s.charCodeAt(b % s.length)) % 256, d = a[b], a[b] = a[h], a[h] = d;
  18.   for (var e = h = b = 0; e < k.length; e++) b = (b + 1) % 256, h = (h + a[b]) % 256, d = a[b], a[b] = a[h], a[h] = d, c += String.fromCharCode(k.charCodeAt(e) ^ a[(a[b] + a[h]) % 256]);
  19.   0 !== c.indexOf("http") && smuleError("Failed to decode URL " + g + "; got " + c);
  20.   return c;
  21. }
  22. function onPageLoad(mu, vmu) {
  23.   if (mu) {
  24.     document.getElementById("download_link").href = processRecording(mu);
  25.   }
  26.   if (vmu) {
  27.     document.getElementById("video_download_link").href = processRecording(vmu);
  28.   }
  29. }
  30. var lastUrlBoxVal = '';
  31. var edited = false;
  32.  
  33. function focusUrlBox(t) {
  34.   if (!edited) {
  35.     lastUrlBoxVal = t.value;
  36.     t.value = "";
  37.   } else {
  38.     t.setSelectionRange(0, t.value.length)
  39.   }
  40. }
  41. function blurUrlBox(t) {
  42.   if (!edited) {
  43.     t.value = lastUrlBoxVal;
  44.   }
  45. }
  46. function changeUrlBox() {
  47.   edited = true;
  48. }
  49. function openRH() {
  50.   window.open('http://www.revenuehits.com/lps/v41/?ref=@RH@ZBMxoBxQN6SuKQA9oQov1w', '_blank');
  51.   return true;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement