Greasemonkey script to prevent radioloyalty from hiding captcha


SUBMITTED BY: KapguHaJI

DATE: May 29, 2017, 5:28 a.m.

UPDATED: June 25, 2017, 1:56 p.m.

FORMAT: Text only

SIZE: 1.3 kB

HITS: 82370

  1. // ==UserScript==
  2. // @name Radio prevent hide
  3. // @namespace radio-prevent
  4. // @include http://player.radioloyalty.com/*
  5. // @include https://player.radioloyalty.com/*
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9. (function() {
  10. window.addEventListener('load', function(){
  11. if (document.getElementById('mainDisplayAd').children.length === 0){
  12. setTimeout(function(){
  13. if (document.getElementById('mainDisplayAd').children.length === 0){
  14. window.location.reload(true);
  15. }
  16. }, 10000);
  17. }
  18. if (!playerManager.get("session").get("uuid")){
  19. setTimeout(function(){
  20. if (!playerManager.get("session").get("uuid")){
  21. window.location.reload(true);
  22. }
  23. }, 10000);
  24. }
  25. var css = '.modal-backdrop{z-index: 0 !important; }';
  26. css += '#player{visibility: hidden !important;}';
  27. css += '#player{pointer-events: none !important;}';
  28. css += '#captchaModal{display: block !important}';
  29. css += '#modal .modal{opacity: 1 !important;}';
  30. var head = document.head || document.getElementsByTagName('head')[0];
  31. var style = document.createElement('style');
  32. style.type = 'text/css';
  33. if (style.styleSheet){
  34. style.styleSheet.cssText = css;
  35. } else {
  36. style.appendChild(document.createTextNode(css));
  37. }
  38. head.appendChild(style);
  39. });
  40. })();

comments powered by Disqus