eugenemagin

Wishmaster

Jul 16th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Wishmaster
  3. // @require http://code.jquery.com/jquery.min.js
  4. // @require http://pastebin.com/download.php?i=RpMTzMpj
  5. // @include http://2ch.hk/b/*
  6. // ==/UserScript==
  7. function f(onDone){
  8. $("<span id=\"Generation\"> generate</button>").insertAfter("#submit");
  9. }
  10. f();
  11.  
  12. $("#Generation").click(function(){
  13. var ids = $('.postMessage');
  14. var message = ">>"+ids[Math.floor(Math.random() * ids.length)].id.slice(1,this.length)+"\n";
  15. var message2 = ids[Math.floor(Math.random() * (ids.length-1))].innerText.replace(/>>\d{1,}\n/gi, "");
  16. if (message2.length<=10){
  17. message2=array[Math.floor(Math.random() * (array.length-1))];
  18. }
  19. $("#shampoo").text(message+message2);
  20. //alert(message);
  21. });
Advertisement
Add Comment
Please, Sign In to add comment