Advertisement
Guest User

autosurfer-bitssurfer.com

a guest
Apr 14th, 2017
1,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Surf
  3. // @namespace Munem2x
  4. // @icon http://bitssurfer.com/android-icon-192x192.png
  5. // @version 2
  6. // @description Auto surf
  7. // @author Munem2x
  8. // @match http://bitssurfer.com/surf/browse
  9. // @grant none
  10. // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function(){
  14. setInterval(function(){
  15. if($(".green-text:not(:empty)")){
  16. (function () {
  17. var ids = {};
  18. var found = false;
  19. $('[id]').each(function() {
  20. if (this.id && ids[this.id]) {
  21. found = true;
  22. console.warn('Duplicate ID #'+this.id);
  23. dupid=this.id;
  24. $('#'+dupid).mousedown();
  25. $('#'+dupid).click();
  26. $('#'+dupid).mouseup();
  27. }
  28. ids[this.id] = 1;
  29. });
  30. if (!found) console.log('No duplicate IDs found');
  31. })();
  32. }
  33. },10000);
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement