Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name BTC to USD
- // @include http://coolepochcountdown.com/*
- // @include http://xkcd.com/*
- // @include https://primedice.com/play
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
- // @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js
- // @resource jqUI_CSS http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
- // @resource IconSet1 http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/images/ui-icons_222222_256x240.png
- // @resource IconSet2 http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/images/ui-icons_454545_256x240.png
- // @grant GM_addStyle
- // @grant GM_getResourceText
- // @grant GM_getResourceURL
- // ==/UserScript==
- //--- Add our custom dialog using jQuery. Note the multi-line string syntax.
- $("body").append (
- '<div id="bet"> \
- Wallet \
- </div> \
- <div id="DIV2"> \
- Bet Amount \
- </div> \
- <div id="profit"> \
- Win Amount \
- </div> \
- '
- );
- document.addEventListener("DOMContentLoaded", function(event) {
- ember821.appendChild(DIV2);
- ember821.appendChild(bet);
- ember821.appendChild(profit);
- function yourFunction(){
- var MyDiv1 = parseFloat(document.getElementById('ember791').innerHTML);
- var MyDiv2 = document.getElementById('DIV2');
- MyDiv2.innerHTML = '$ ' + Math.ceil(MyDiv1 * 333333) / 1000;
- var MyDiv3 = document.getElementById('ember836').value;
- var MyDiv4 = document.getElementById('bet');
- MyDiv4.innerHTML = '$ ' + Math.ceil(MyDiv3 * 333333) / 1000;
- var MyDiv5 = document.getElementById('ember846').value;
- var MyDiv6 = document.getElementById('profit');
- MyDiv6.innerHTML = '$ ' + Math.ceil(MyDiv5 * 333333) / 1000;
- setTimeout(yourFunction, 1250);
- }
- yourFunction();
- });
- GM_addStyle ( " \
- #bet { \
- position: absolute; \
- top: -30px; \
- right: 30px; \
- background-color: rgb(255,255,255); \
- width: 150px; \
- color: rgb(107,115,141); \
- text-align: right; \
- font-weight: bold; \
- font-size: 18px; \
- z-index: 100001; \
- } \
- " );
- GM_addStyle ( " \
- #DIV2 { \
- position: relative; \
- top: -80px; \
- right: -550px; \
- width: 200px; \
- color: rgb(255,255,255); \
- text-align: right; \
- font-weight: bold; \
- font-size: 18px; \
- z-index: 100001; \
- } \
- " );
- GM_addStyle ( " \
- #profit { \
- position: absolute; \
- top: -30px; \
- right: -300px; \
- background-color: rgb(255,255,255); \
- width: 150px; \
- color: rgb(107,115,141); \
- text-align: right; \
- font-weight: bold; \
- font-size: 18px; \
- z-index: 100002; \
- } \
- " );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement