Posted By

f on 01/06/09


Tagged

siteDependent


Versions (?)

無名小站


 / Published in: JavaScript
 

URL: http://wretch.cc/

Stop the music on 無名小站.

  1. /* pause = pause ? !pause : pause
  2. javascript: var obj = document.getElementById("automusic"); obj.removeChild(obj.firstChild); so.addVariable("autostart", so.getVariable("autostart") == "true" ? "false" : "true"); so.write("automusic"); undefined;
  3. */
  4. var obj = document.getElementById("automusic");
  5. obj.removeChild(obj.firstChild);
  6. so.addVariable("autostart", so.getVariable("autostart") == "true" ? "false" : "true");
  7. so.write("automusic");
  8. undefined;
  9.  
  10. /* Extract the URL to the MP3.
  11. javascript: var popup; popup = open("", "href", "location = false, menubar = false, scrollbars = false, toolbar = false"); popup.resizeTo(155, 100); popup.document.body.appendChild( popup.document.createElement("a") ); popup.document.body.firstChild.href = so.getVariable("file"); popup.document.body.firstChild.textContent = "URL to the MP3"; undefined;
  12.  */
  13. var popup;
  14. popup = open("", "href", "location = false, menubar = false, scrollbars = false, toolbar = false");
  15. /*
  16. popup.moveTo( (screen.availWidth - 100) / 2, (screen.availHeight - 155) / 2 );
  17.  */
  18. popup.resizeTo(155, 100);
  19. popup.document.body.appendChild( popup.document.createElement("a") );
  20. popup.document.body.firstChild.href = so.getVariable("file");
  21. popup.document.body.firstChild.textContent = "URL to the MP3";
  22. undefined;
  23.  
  24. /* Image url to image page
  25. javascript: var information = location.pathname.split('/'); location.href = "http://www.wretch.cc/album/show.php?i=" + information[1] + "&b=" + information[2] + "&f=" + /[^.]+/.exec(information[3]);
  26. */
  27. var information = location.pathname.split('/');
  28. location.href = "http://www.wretch.cc/album/show.php?i=" + information[1] + "&b=" + information[2] + "&f=" + /[^.]+/.exec(information[3]);

Report this snippet  

You need to login to post a comment.