Skip to content

Instantly share code, notes, and snippets.

@Robadob
Last active April 1, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robadob/227d1b7ec6481dafe913c0bbdbdef65f to your computer and use it in GitHub Desktop.
Save Robadob/227d1b7ec6481dafe913c0bbdbdef65f to your computer and use it in GitHub Desktop.
Reddit robin auto grow greasemonkey/tampermonkey userscript.
// ==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