Jump to content
Sign in to follow this  
derghost

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. 

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)

 

primedice.addon_v33.thumb.PNG.2deef1464d2a6f0a5a28b182a2714491.PNG

 



- 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 

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

Guest
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  

×