Bitssurfer AutoSurf Script


SUBMITTED BY: Riekie

DATE: March 7, 2017, 5:58 p.m.

UPDATED: April 24, 2017, 5:53 p.m.

FORMAT: Text only

SIZE: 888 Bytes

HITS: 2976

  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. $(document).ready(function(){
  13. setInterval(function(){
  14. if($(".green-text:not(:empty)")){
  15. (function () {
  16. var ids = {};
  17. var found = false;
  18. $('[id]').each(function() {
  19. if (this.id && ids[this.id]) {
  20. found = true;
  21. console.warn('Duplicate ID #'+this.id);
  22. dupid=this.id;
  23. $('#'+dupid).mousedown();
  24. $('#'+dupid).click();
  25. $('#'+dupid).mouseup();
  26. }
  27. ids[this.id] = 1;
  28. });
  29. if (!found) console.log('No duplicate IDs found');
  30. })();
  31. }
  32. },10000);
  33. });

comments powered by Disqus