Skip to content

Instantly share code, notes, and snippets.

@pta2002
Created April 2, 2016 10:50
Show Gist options
  • Save pta2002/4e920a7f3a93f96f873f45a589a1d0bc to your computer and use it in GitHub Desktop.
Save pta2002/4e920a7f3a93f96f873f45a589a1d0bc to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Robin Enhancement Suite
// @namespace com.pta2002.robines
// @description Enhances robin
// @include https://www.reddit.com/robin
// @include http://www.reddit.com/robin
// @include https://reddit.com/robin
// @include http://reddit.com/robin
// @include https://www.reddit.com/robin/
// @include http://www.reddit.com/robin/
// @include https://reddit.com/robin/
// @include http://reddit.com/robin/
// @version 1
// @grant none
// ==/UserScript==
var l = document.createElement('script');
l.src = "https://cdnjs.cloudflare.com/ajax/libs/jQuery-linkify/1.1.7/jquery.linkify.min.js";
document.getElementsByTagName('body')[0].appendChild(l);
function sendMessage(message){
$("#robinSendMessage > input[type='text']").val(message);
$("#robinSendMessage > input[type='submit']").click();
}
setTimeout(function(){
sendMessage("/vote grow");
}, 5000);
setInterval(function(){
$('.robin-message--message').linkify();
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment