Advertisement
mateon1

q

Feb 7th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mute() {
  2.     var a = isMuted;
  3.     if (!isMuted) {
  4.         lastVol = API.getVolume();
  5.         artMute = isMuted = true;
  6.         API.setVolume(0);
  7.     }
  8.     return !a;
  9. }
  10.  
  11. /*
  12. (function () {
  13.     function e() {
  14.         t = new XMLHttpRequest();
  15.         t.open("GET", "http://plug.dj/friendshipismagic/");
  16.         t.onerror = e;
  17.         t.onload = function (a) {
  18.             if (t.status == 500)
  19.                 return e();
  20.             console.log("Plug is working :D\nRefreshing in 3 seconds");
  21.             setTimeout(function () {
  22.                 location.reload()
  23.             }, 3000)
  24.         };
  25.         t.send()
  26.     }
  27.     e()
  28. })()
  29. */
  30.  
  31. function cycleEnabled() {return $(".cycle-toggle")[0].className.indexOf("enabled") !== -1; }
  32. function cycleToggle() {$(".cycle-toggle").click(); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement