Sleazy Fork is available in English.

Chaturbate Auto Refresh

Refreshes Chatubate profiles to check if the user if online, useful when streams drop.

  1. // ==UserScript==
  2. // @name Chaturbate Auto Refresh
  3. // @namespace https://tesomayn.com
  4. // @version 1.0
  5. // @description Refreshes Chatubate profiles to check if the user if online, useful when streams drop.
  6. // @author TesoMayn
  7. // @match https://chaturbate.com/*
  8. // @match http://chaturbate.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. $(document).ready( function() {
  13. var checkTime = 5; // This is all you need to change, to time in seconds
  14. /* No need to change below this, unless you know what you are doing */
  15. if ($('#defchat > p:contains("Room is currently offline")').length > 0) {
  16. setInterval(function(){
  17. window.location.reload(1);
  18. },checkTime*1000);
  19. $('#defchat p').append('<p class="recheckCountown">Rechecking in <b id="check-time">'+ checkTime +'</b> seconds</p>');
  20. }
  21. var settimmer = 0;
  22. $(function(){
  23. window.setInterval(function() {
  24. var timeCounter = $("b#check-time").html();
  25. var updateTime = eval(timeCounter)- eval(1);
  26. $("b#check-time").html(updateTime);
  27. }, 1000);
  28.  
  29. });
  30. });