Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Robin Autovote non spammy
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.reddit.com/robin/
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- function sendMessage(message){
- $("#robinSendMessage > input[type='text']").val(message);
- $("#robinSendMessage > input[type='submit']").click();
- }
- function getUserCount(){
- var participants = $(".robin-room-participant").length;
- var overflowCount = (participants == 200) ? parseInt( $(".robin-user-list-overflow-indicator").text().replace(/\D/g,'') ) : 0;
- return participants + overflowCount;
- }
- setTimeout(function(){
- sendMessage("/vote grow");
- console.info("[Autovoter-fork 1.9] " + getUserCount() + " in this room! " + $("span:contains('Voting will end')").first().text());
- setTimeout(function(){
- window.location.reload();
- }, 300000);
- }, 5000);})();
Add Comment
Please, Sign In to add comment