Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Surf
- // @namespace Munem2x
- // @icon http://bitssurfer.com/android-icon-192x192.png
- // @version 2
- // @description Auto surf
- // @author Munem2x
- // @match http://bitssurfer.com/surf/browse
- // @grant none
- // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
- // ==/UserScript==
- $(document).ready(function(){
- setInterval(function(){
- if($(".green-text:not(:empty)")){
- (function () {
- var ids = {};
- var found = false;
- $('[id]').each(function() {
- if (this.id && ids[this.id]) {
- found = true;
- console.warn('Duplicate ID #'+this.id);
- dupid=this.id;
- $('#'+dupid).mousedown();
- $('#'+dupid).click();
- $('#'+dupid).mouseup();
- }
- ids[this.id] = 1;
- });
- if (!found) console.log('No duplicate IDs found');
- })();
- }
- },10000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement