Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 10 Bet
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Adds 10-Bet buttons to Neofoodclub oldpage
- // @author KK20
- // @match http://neofoodclub.fr/oldpage.html*
- // @require https://code.jquery.com/jquery-3.1.0.min.js
- // @grant none
- // ==/UserScript==
- this.$ = this.jQuery = jQuery.noConflict(true);
- function ten_bet(arena_id, pirate_row) {
- $("tbody:eq("+arena_id+") tr:eq("+pirate_row+") input:radio").prop("checked", true).trigger("click");
- }
- $(function() {
- $('table:first tbody tr:not(:last) td:last-child:not([colspan])').after('<td><input class="ten-bet" type="button" value="10-Bet"/></td>');
- $("input.ten-bet").click(function(){
- var id = $("input.ten-bet").index(this);
- var arena_id = parseInt(id / 5);
- var pirate_row = id % 5;
- ten_bet(arena_id, pirate_row)
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement