Jump to content
Sign in to follow this  

Primedice visual/comfort plugin (PVCP)

Recommended Posts

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.js

i will keep this post and the update url the same, so you can check both before updating or not. 

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';
            $('<button/>').addClass('btn').attr({style:"position: fixed;top: 198px; left: 375px; height: 40px; width: 140px;z-index:9999;"})
                    function() {
                        var maxbutton = null;
                        var spans = $('.dice__control__button span');
                        spans.each(function() {
                            if ($(this).text() == "max")
                                maxbutton = $(this);
                        if (maxbutton.is(":visible"))

            $('<button/>').addClass('btn').attr({style:"position: fixed;top: 157px; left: 375px; height: 40px; width: 140px;z-index:9999;"})
                    function() {
                        if ($('#tablestylechanged').length !== 0)
                            $('body').prepend($('<style/>').attr('id','tablestylechanged').text(".index__game-stats__table li span, .index__game-stats__list, .index__game-stats { padding: 1px 0; }"));
            $('<button/>').addClass('btn').attr({style:"position: fixed;top: 116px; left: 375px; height: 40px; width: 140px;z-index:9999;"})
                        if ($('.index__home__indicator').is(":visible")) {
                        } else {
            $('<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; }"));

        var spans = $('.dice__control__button span');
        spans.each(function() {
            if ($(this).text() == "max")


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 :P 

Edited by derghost
update 0.34

Share this post

Link to post
Share on other sites

i just thought i use the classes that are already defined :P 

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 :D


Edited by derghost

Share this post

Link to post
Share on other sites

its all for the game :) 
it a honor that you like it :) i like primedice :D

found a bug with the max button, currently fixing it 


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 :P 

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this