-
-
Save Robadob/227d1b7ec6481dafe913c0bbdbdef65f to your computer and use it in GitHub Desktop.
Reddit robin auto grow greasemonkey/tampermonkey userscript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit Robin | |
// @namespace http://robadob.org/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author Robadob | |
// @match https://www.reddit.com/robin/ | |
// @match https://www.reddit.com/robin | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
setInterval( | |
function() { | |
//If grow button is not pressed | |
if($("button.robin-chat--vote-increase.robin--active").size()==0){ | |
//Press it | |
$("button.robin-chat--vote-increase").click(); | |
//Advertise script | |
$("#robinSendMessage input")[0].value="I automatically pressed the grow button using http://robin.robadob.org"; | |
$("form#robinSendMessage").submit(); | |
//Log how many users are in the room (as this effects room duration) | |
//Timeout used due to inability to chat's spam prevention | |
setTimeout( | |
function() { | |
$("#robinSendMessage input")[0].value="There are "+$(".robin-room-participant").size()+" participants in the room."; | |
$("form#robinSendMessage").submit(); | |
}, | |
1000); | |
} | |
}, | |
1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.reddit.com/r/joinrobin/comments/4cwprc/tampermonkey_userscript_for_automatic_growth/