Recargar chuts

Auto actualizar el MI

  1. // ==UserScript==
  2. // @name Recargar chuts
  3. // @namespace http://pixiebot.xyz/
  4. // @version 0.4
  5. // @description Auto actualizar el MI
  6. // @author You
  7. // @include http*://www.taringa.net/mi
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. 'use strict';
  12.  
  13. function chuts(){
  14. var loc = $(window).scrollTop();
  15. if (loc < 550) { /* Para que no actualice cuando estamos scroleando hacia abajo porque nos resetea todo */
  16. var chuuuuuuuuts = parseInt($('#bubble-alert-newsfeed').text())
  17. if (chuuuuuuuuts > 0) {
  18. $('#bubble-alert-newsfeed').click()
  19. }
  20. }
  21.  
  22. }
  23. setInterval(chuts, 2000);