Skip to content

Instantly share code, notes, and snippets.

@ssig33
Created February 10, 2019 04:55
Show Gist options
  • Save ssig33/78ba59e8ccf6d3a5495ad7ec6d0f9f05 to your computer and use it in GitHub Desktop.
Save ssig33/78ba59e8ccf6d3a5495ad7ec6d0f9f05 to your computer and use it in GitHub Desktop.
irc
// ==UserScript==
// @name IRCCloud Jump
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.irccloud.com/*
// @grant none
// ==/UserScript==
(function() {
$(window).keydown((e)=>{
if(event.ctrlKey){
if(e.keyCode === 89){
document.querySelector('li.unread span.label').click()
return false;
}
}
});
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment