Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TTVGA
- // @namespace std KEKW
- // @version 3
- // @description Clicks the gift button thingy.
- // @author u/cognitively_edgy
- // @match *://www.twitch.tv/*
- // ==/UserScript==
- var chatButtonsCollection;
- var giftBtnCollection;
- function main() {
- chatButtonsCollection = document.getElementsByClassName("chat-input__buttons-container tw-flex tw-justify-content-between tw-mg-t-1")
- if (chatButtonsCollection.length > 0) {
- giftBtnCollection = chatButtonsCollection[0].getElementsByClassName("tw-button tw-button--success tw-interactive");
- if (giftBtnCollection.length > 0) {
- giftBtnCollection[0].click();
- console.log("TTVGA clicked!");
- }
- }
- }
- setInterval(main, 1500);
- console.log("TTVGA ready");// ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.tampermonkey.net/index.php?version=4.9&ext=dhdg&updated=true
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement