Orlygift Compact

Orlygift Compact Giveaway page (16/03/2016)

Tính đến 16-03-2016. Xem phiên bản mới nhất.

  1. // ==UserScript==
  2. // @name Orlygift Compact
  3. // @namespace MurkBRA
  4. // @description Orlygift Compact Giveaway page (16/03/2016)
  5. // @author MurkBRA
  6. // @homepage
  7. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAjCAYAAADizJiTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAU9SURBVHjavJhvTJVVHMc/F26EqFysQEsendFiwJatyCxfpDFWNmdu9iKbLmUyar2oN0ZNo5atiNjUzZTlalQbi1fGm9JFwlhZtmyaLrSANi/ChBw8OVT+3t58n3Y4Pc/lgd31287uOb/z+/N9zjm/3++cG0kkEsxEkUgEgDixecAuYDuwAhgGjgE1Du4ffrpxYoXAXuBJYCHwJ/AZ8L6DewMgFIawQAWyFXjUR+Rv4HEH97QFshT4Fsj20TkFlDm4I2EwpBGeagyQCeB3YETjbOBonNjtBshc4KgBckQ6HqqHtdKhKBTQOLE0oFLDSaDcwS0ElgPnxXeApjixtDixdKAJyNfcr8By6awDJsSviBOLhsEQaut7IzlLgH4NTzi4ZcZH3AP8DMTEelsLsEdjFyh1cLsMna+A9Rouy08Mx1O19TeN/uI4sQj/LqPbBTxvzL9hgATYboGMAHcG2E5JMJ0F7hPrY+BDYMgQe8sCDPC5zrZHtwEvGMeo08EtTnXUPw18SWrpWQe3OaVR7+C2aCUmUwBwEqhycJvDKkS0nWuUegqAO4BczaHt/Utn71ic2N3AJmAVkDlLgDeBn4AWB7cbKANq5XORkfoG5bMbOAl8bxtaIsA7dQbPSDGhVXgHWJqCFb1L2WHSsH9GPncCjwjLtBUNY3QTUAE8KN5vQDxsxBqUqXxbrPFp4BOd/b65fPFzQBfQogTt0Vqgw1iFubYO2fJonXx1yfeMFAUaZKxdZxcgHSgE7tUu7ACuzQHgNelG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version 1.2016.03.16.0
  10. // @grant unsafeWindow
  11. // @require http://code.jquery.com/jquery-2.1.4.min.js
  12. // @include /^https?:\/\/(www\.)?orlygift\.com\/giveaway/
  13. // ==/UserScript==
  14.  
  15. /*// lets make the timer alive and reload automatically on round end by Tackyou
  16. $(function(){
  17. $('div.callout.callout-info strong:nth-of-type(2)').addClass('tempo');
  18. $('div.callout.callout-info strong:nth-of-type(1)').remove();
  19. $('div.callout.callout-info p').html('This page auto reload in ' + $('<strong class="tempo">').append($('*', 'div.callout.callout-info p')).html());
  20. var timelem = $('.tempo');
  21. if(timelem.length>0){
  22. var fetchtime = timelem.text();
  23. var hours = +(fetchtime.split(':')[0]), mins = +(fetchtime.split(':')[1].split(' h')[0]), secs = (hours * 3600 + mins * 60 + 90), currentSeconds = 0, currentMinutes = 0, currentHours = 0, count = setInterval(function() {
  24. currentHours = Math.floor(secs / 60 / 60);
  25. if(currentHours <= 9) currentHours = '0' + currentHours;
  26. currentMinutes = Math.floor(secs / 60) % 60;
  27. if(currentMinutes <= 9) currentMinutes = '0' + currentMinutes;
  28. currentSeconds = secs % 60;
  29. if(currentSeconds <= 9) currentSeconds = '0' + currentSeconds;
  30. secs--;
  31. timelem.text(currentHours + 'h ' + currentMinutes + 'm ' + currentSeconds + 's');
  32. if(secs == -1){ clearInterval(count); location.reload(); }
  33. }, 1000);
  34. }
  35. });*/
  36. $(function recarregar(){
  37. var count = setInterval(function() {
  38. if($('#time_left_countdown canvas').length){
  39. console.log('checando...');
  40. }else{
  41. clearInterval(count);
  42. setInterval(function () {location.reload();}, 20000);
  43. console.log('recarregando em 20s...');
  44. }
  45. }, 1000);
  46. });
  47.  
  48. $("<style>").text([
  49. "@namespace url(http://www.w3.org/1999/xhtml);",
  50. "/* Orlygift fixed */",
  51. ".col-md-offset-2.col-md-8 > br, .ng-scope > br, .sweet-overlay, .blocked-overlay, .alert-danger, #commander-cool-banner, #orlygift_tutorial, .sweet-alert.showSweetAlert:not([data-animation=pop]).visible, .ad-container, #exit-intent-guest, #exit-intent-user, .modal-backdrop.fade.in, .box.box-dange, .slider.slick-initialized.slick-slider, footer, .row.headline-container.animated > div > h4, .row.headline-container.animated > div > h3, .row.headline-container.animated > div > p, .box.box-danger, .last_claimed, .product-img, .slider, .container.home-container > .row:not(.countdown-container):not(.animated), .content-perspective > .content > .content-inner .ng-scope > .row, .content-perspective > .content > .content-inner > .row > col-md-12, .nav.navbar-nav.hidden-xs {visibility: hidden !important; display: none !important;}",
  52. ".container-fluid.game_page_background.ng-scope {margin-bottom: 40px !important;}",
  53. ".products-list .product-info {margin-left: 0px !important;}",
  54. ".stop-scrolling {overflow: inherit !important; height: inherit !important;}",
  55. ".modal-open {overflow: auto !important;}",
  56. "#main {padding-bottom: 0 !important;overflow: inherit !important;}",
  57. ".content-inner, .form-control {background: #003448 !important;}",
  58. ".event input[type='radio']:checked ~ .content-perspective .content-inner p, .products-list .product-description, .content-inner {color: #FFF !important;}",
  59. ".event.finished .content-inner h3, .cc_container, .form-control, .form-control-feedback {color: #000 !important;}",
  60. ".btn-steam {color: #000 !important;background-color: #3E581B !important;}",
  61. ".btn-steam:hover {color: #000 !important;background-color: #304515 !important;}",
  62. ".cc_container {background: #003448 !important; border: #003448 !important;}",
  63. ".form-control {border: 1px solid #4B4B4B !important;}",
  64. ".form-control:focus {border: 1px solid #000 !important;}",
  65. ".box, .products-list > .item {background: #00222F !important;}",
  66. ".product-list-in-box > .item, .box-header.with-border {border-bottom: 1px solid #000 !important;}",
  67. ".box-body {overflow: auto !important;max-height: 200px !important;}",
  68. ".info-box {background: #00532D !important;}",
  69. ".callout.callout-info {background: #1A6A82 !important;border-color: #004C5E !important;}",
  70. ".callout.callout-warning {background: #EB9214 !important;border-color: #A06608 !important;}",
  71. ".btn-info {background-color: #1A6A82 !important;}",
  72. ".btn-info:hover {background-color: #16596D !important;}",
  73. "#raffle-enter-button {position: fixed !important;bottom: 0px !important;width: 100% !important;z-index: 99 !important;left: 0px !important;margin-bottom: 0px !important;}",
  74. ".event label.arrow::after {background: #1a1a1a !important;}",
  75. ".event input[type='radio']:checked ~ .thumb {box-shadow: 0px 0px 0px 8px #1A1A1A, 0px 1px 1px #000 !important;}",
  76. ".callout.callout-success {border-color: #003A1F !important;background: #2A602A !important;}",
  77. ".row.headline-container.animated {transform: scale(0.5);top: -30px;position: relative;}",
  78. ".row.countdown-container {transform: scale(0.5);position: relative;top: -120px;}",
  79. ".timeline {margin-bottom: -160px !important;top: -160px !important;padding: 0px 0px 0px !important;}",
  80. ".popover {background-color: #003448 !important;}",
  81. ".popover.top > .arrow::after {border-top-color: #003448 !important;}",
  82. ".popover-title {background-color: #1A6A82 !important;border-bottom: 1px solid #000 !important;}",
  83. ".btn-block + .btn-block {margin-top: 2px !important;}",
  84. ".box-body {padding: 0px 10px !important;}",
  85. ".box-header {padding: 3px !important;}",
  86. ".products-list > .item {padding: 0px !important;}",
  87. ".event:not(.finished) > .content-perspective > .content > .content-inner {padding: 1px 20px !important;}",
  88. ".event:not(.finished) > .content-perspective > .content > .content-inner h3:not(.popover-title) {padding: 0px 0px !important;}",
  89. ".event:not(.finished) > .content-perspective > .content > .content-inner::before {top: 16px !important;left: -36px !important;}",
  90. ".content-inner::before {top: 9px !important;left: -36px !important;color: #4E5D6C !important; }",
  91. ".content-inner {border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color #4E5D6C !important;}",
  92. ".event input[type='radio']:checked ~ .content-perspective .content-inner::before {color: #E3000E !important;}",
  93. ".event input[type='radio']:checked ~ .content-perspective .content-inner {border-color: #E3000E !important;}",
  94. ".event {margin-bottom: 10px !important;}",
  95. ".container {width: 1000px !important;}",
  96. ".btn-box-tool {padding: 0px !important;}",
  97. ".box-tools.pull-right {top: 1px !important;}",
  98. ".box {border-top: 3px solid #0842B5 !important;}",
  99. ".nav-tabs-custom > .nav-tabs > li.active > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a {background-color: #0F132D !important;color: #fff !important;}",
  100. ".nav-tabs-custom > .tab-content {background: #0F132D !important;}",
  101. ".nav-tabs-custom {background-color: #1A1D38 !important;}",
  102. ".nav-tabs-custom > .nav-tabs > li > a {color: #999 !important;}",
  103. ".nav-tabs-custom > .nav-tabs > li > a:hover {color: #fff !important;}",
  104. ".nav-tabs-custom > .nav-tabs {border-bottom-color: #000 !important;}",
  105. ".nav-tabs-custom > .nav-tabs > li.active > a {border-right-color: #000 !important;}",
  106. "",
  107. ""
  108. ].join("\n")).appendTo(document.documentElement);