Twitch AutoCollect Points

Collect points automagically when watching streams at Twitch

  1. // ==UserScript==
  2. // @name Twitch AutoCollect Points
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6.1
  5. // @description Collect points automagically when watching streams at Twitch
  6. // @author Lasse Brustad
  7. // @include /^https?://(www.)?twitch.tv/.*/
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // Run an interval every x ms
  15. setInterval(function() {
  16. // Click the points button if it exists
  17. document.querySelector('.community-points-summary > div:last-child button')?.click();
  18.  
  19. }, 1e3); // 1000ms or 1s
  20. })();