derghost 1 #1 Posted July 21, 2017 (edited) Primedice Visual/Comfort Plugin i saw something that i would love to change, i just did it. current feature(version 0.35) hide rollbar shrink result list new seed button safemode (max button hidden) removed scrollbar to the right (stopping the strange movement of the screen) required: tampermonkey (http://tampermonkey.net/) updateurl: http://gamble.ghost-server.de/pvcp.jsi will keep this post and the update url the same, so you can check both before updating or not. WARNING: only consider the auto update of external scripts via tampermonkey if you trust the source, it may harm your deposits it would be easy to withdraw all your money if i would want to with auto update active/without checking the script. // ==UserScript== // @name Primedice Visual/Comfort Plugin (PVCP) // @namespace http://gamble.ghost-server.de/ // @version 0.35 // @description try to take over the world! // @author derghost // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js // @match https://primedice.com/play // @grant none // ==/UserScript== (function() { 'use strict'; $('body') .prepend( $('<button/>').addClass('btn').attr({style:"position: fixed;top: 198px; left: 375px; height: 40px; width: 140px;z-index:9999;"}) .text("t.safemod") .click( function() { var maxbutton = null; var spans = $('.dice__control__button span'); spans.each(function() { if ($(this).text() == "max") maxbutton = $(this); }) if (maxbutton.is(":visible")) maxbutton.parent().hide(); else maxbutton.parent().show(); } ) ) .prepend( $('<button/>').addClass('btn').attr({style:"position: fixed;top: 157px; left: 375px; height: 40px; width: 140px;z-index:9999;"}) .text("t.smaller") .click( function() { if ($('#tablestylechanged').length !== 0) $('#tablestylechanged').remove(); else $('body').prepend($('<style/>').attr('id','tablestylechanged').text(".index__game-stats__table li span, .index__game-stats__list, .index__game-stats { padding: 1px 0; }")); } ) ) .prepend( $('<button/>').addClass('btn').attr({style:"position: fixed;top: 116px; left: 375px; height: 40px; width: 140px;z-index:9999;"}) .text("t.rollbar") .click( function(){ if ($('.index__home__indicator').is(":visible")) { $('.index__home__indicator').hide(); } else { $('.index__home__indicator').show(); } } ) ) .prepend( $('<button/>').addClass('btn').attr({style:"position: fixed;top: 75px; left: 375px; height: 40px; width: 140px;z-index:9999;"}) .text("new seed") .click(function(){ $('.fair__modal__content__wrap').find('.btn').click(); }) ) .append($('<style/>').text("html { -ms-overflow-style: none; overflow: -moz-scrollbars-none; }")) .append($('<style/>').text("::-webkit-scrollbar { display: none; }")); setTimeout(function(){ var spans = $('.dice__control__button span'); console.log(spans); spans.each(function() { if ($(this).text() == "max") $(this).parent().hide(); }) },1000); })(); version 0.1: the new seed button version 0.2: as bitcoinmnr wishes the toggle rollbar button ("t.rollbar") version 0.3: shrink result list toggle ("t.smaller") version 0.31 changed width of buttons version 0.33 added safemode toggle, no max button on load ("t.safemod") version 0.34 removed scrollbar to the right (suppress strange window moves) version 0.35 fixed a bug where buttons in automated betting was hidding aswell as the max button next to come: button <-> chat response (if chat not displayed, move button to the left) increase % button (just a button "increase" and a box with the % amount to increase current bet amount) (for manual gambling) - derghost, gamble responsible p.s: if you like, feel free to tip and dont forget to like it if you use it Edited July 21, 2017 by derghost update 0.34 1 BitCoinMNR reacted to this Quote Share this post Link to post Share on other sites
rack001 44 #2 Posted July 21, 2017 great work man it will come in handy !gonna try it now ! and it perfectly matches the primedice theme ! Quote Share this post Link to post Share on other sites
derghost 1 #3 Posted July 21, 2017 (edited) i just thought i use the classes that are already defined and at this moment it just helps to make on click less this could change to direkt new seed but i like to change the client seed manually some times Edited July 21, 2017 by derghost Quote Share this post Link to post Share on other sites
maverick528 245 #4 Posted July 21, 2017 For me its useless as I don´t change seed very often. Anyway, nice to see you shared your work here, and I´m sure it will be useful for several users... Quote Share this post Link to post Share on other sites
BitCoinMNR 46 #5 Posted July 21, 2017 great work probably many will be using it i never ever changed seed since in joined so i don't think am gonna do that now what i could use is a show / hide roll bar button Quote Share this post Link to post Share on other sites
eldrindcm 234 #6 Posted July 21, 2017 Thank you for this <3 Quote Share this post Link to post Share on other sites
BitCoinMNR 46 #7 Posted July 21, 2017 Sweet MANY 10x Quote Share this post Link to post Share on other sites
CntryBoy 194 #8 Posted July 21, 2017 Nicely done, I may take advantage of this as well! Quote Share this post Link to post Share on other sites
Watsky 1 #9 Posted July 21, 2017 Looked over this guys, it's safe. I'm gonna use it, thanks derg. Quote Share this post Link to post Share on other sites
1RegisterNow 31 #10 Posted July 21, 2017 Can you remove buttons too? Some players complain about max button. Quote Share this post Link to post Share on other sites
derghost 1 #11 Posted July 21, 2017 we can do everything even transfer your bank to mine Quote Share this post Link to post Share on other sites
MICRO 56 #12 Posted July 21, 2017 This is very functional I like it. Sometimes function over looks is a good thing. Quote Share this post Link to post Share on other sites
derghost 1 #13 Posted July 21, 2017 its all for the game it a honor that you like it i like primedice found a bug with the max button, currently fixing it fixed 2 hours ago, Watsky said: Looked over this guys, it's safe. I'm gonna use it, thanks derg. you may look over this at every change i made Quote Share this post Link to post Share on other sites