Advertisement
darkenvy

Primedice - BTC to USD 2.0

Nov 6th, 2014
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name     BTC to USD
  3. // @include  http://coolepochcountdown.com/*
  4. // @include  http://xkcd.com/*
  5. // @include  https://primedice.com/play
  6. // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  7. // @require     http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js
  8. // @resource    jqUI_CSS  http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
  9. // @resource    IconSet1  http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/images/ui-icons_222222_256x240.png
  10. // @resource    IconSet2  http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/images/ui-icons_454545_256x240.png
  11. // @grant       GM_addStyle
  12. // @grant       GM_getResourceText
  13. // @grant       GM_getResourceURL
  14. // ==/UserScript==
  15.  
  16. //--- Add our custom dialog using jQuery. Note the multi-line string syntax.
  17. $("body").append (
  18.     '<div id="bet">                                                     \
  19.      Wallet                                                                         \
  20.     </div>                                                                         \
  21.      <div id="DIV2">                                                                \
  22.      Bet Amount                                                                     \
  23.      </div>                                                                         \
  24.      <div id="profit">                                                              \
  25.      Win Amount                                                                     \
  26.      </div>                                                                         \
  27.    '
  28. );
  29.  
  30.  
  31. document.addEventListener("DOMContentLoaded", function(event) {
  32.  
  33.    
  34. ember821.appendChild(DIV2);
  35. ember821.appendChild(bet);
  36. ember821.appendChild(profit);
  37.                          
  38.    
  39. function yourFunction(){
  40.    
  41.       var MyDiv1 = parseFloat(document.getElementById('ember791').innerHTML);
  42.       var MyDiv2 = document.getElementById('DIV2');
  43.       MyDiv2.innerHTML = '$ ' + Math.ceil(MyDiv1 * 333333) / 1000;
  44.    
  45.    
  46.       var MyDiv3 = document.getElementById('ember836').value;
  47.       var MyDiv4 = document.getElementById('bet');
  48.       MyDiv4.innerHTML = '$ ' + Math.ceil(MyDiv3 * 333333) / 1000;
  49.    
  50.    
  51.       var MyDiv5 = document.getElementById('ember846').value;
  52.       var MyDiv6 = document.getElementById('profit');
  53.       MyDiv6.innerHTML = '$ ' + Math.ceil(MyDiv5 * 333333) / 1000;
  54.    
  55.    
  56.       setTimeout(yourFunction, 1250);
  57. }
  58.  
  59. yourFunction();
  60.  
  61.  
  62. });
  63.  
  64.  
  65.  
  66.  
  67. GM_addStyle ( "                         \
  68.    #bet {                  \
  69.        position:       absolute;       \
  70.        top:            -30px;          \
  71.        right:           30px;         \
  72.         background-color: rgb(255,255,255); \
  73.         width: 150px;                   \
  74.         color: rgb(107,115,141);        \
  75.         text-align: right;              \
  76.         font-weight: bold;              \
  77.         font-size: 18px;                \
  78.         z-index: 100001;                \
  79.    }                                   \
  80. " );
  81.  
  82. GM_addStyle ( "                         \
  83.     #DIV2 {                             \
  84.        position:       relative;       \
  85.        top:            -80px;          \
  86.        right:           -550px;         \
  87.         width: 200px;                   \
  88.         color: rgb(255,255,255);        \
  89.         text-align: right;              \
  90.         font-weight: bold;              \
  91.         font-size: 18px;                \
  92.         z-index: 100001;                \
  93.    }                                   \
  94. " );
  95.  
  96. GM_addStyle ( "                         \
  97.     #profit {                           \
  98.        position:       absolute;       \
  99.        top:            -30px;          \
  100.        right:           -300px;         \
  101.         background-color: rgb(255,255,255); \
  102.         width: 150px;                   \
  103.         color: rgb(107,115,141);        \
  104.         text-align: right;              \
  105.         font-weight: bold;              \
  106.         font-size: 18px;                \
  107.         z-index: 100002;                \
  108.    }                                   \
  109. " );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement