Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. // ==UserScript==
  2. // @name TTVGA
  3. // @namespace std KEKW
  4. // @version 3
  5. // @description Clicks the gift button thingy.
  6. // @author u/cognitively_edgy
  7. // @match *://www.twitch.tv/*
  8. // ==/UserScript==
  9.  
  10. var chatButtonsCollection;
  11. var giftBtnCollection;
  12.  
  13. function main() {
  14. chatButtonsCollection = document.getElementsByClassName("chat-input__buttons-container tw-flex tw-justify-content-between tw-mg-t-1")
  15. if (chatButtonsCollection.length > 0) {
  16. giftBtnCollection = chatButtonsCollection[0].getElementsByClassName("tw-button tw-button--success tw-interactive");
  17. if (giftBtnCollection.length > 0) {
  18. giftBtnCollection[0].click();
  19. console.log("TTVGA clicked!");
  20. }
  21. }
  22. }
  23.  
  24. setInterval(main, 1500);
  25. console.log("TTVGA ready");// ==UserScript==
  26. // @name New Userscript
  27. // @namespace http://tampermonkey.net/
  28. // @version 0.1
  29. // @description try to take over the world!
  30. // @author You
  31. // @match https://www.tampermonkey.net/index.php?version=4.9&ext=dhdg&updated=true
  32. // @grant none
  33. // ==/UserScript==
  34.  
  35. (function() {
  36. 'use strict';
  37.  
  38. // Your code here...
  39. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement