Skip to content

Instantly share code, notes, and snippets.

@ecaradec
ecaradec / newTwitterOpenLinkShortcut.user.js
Created November 10, 2011 13:07 — forked from ankit/newTwitterOpenLinkShortcut.user.js
Userscript to add 'o' shortcut to the new Twitter. Opens shared links, @reply usernames, hashtags shared in a tweet, in that order of priority
// ==UserScript==
// @name 'o' shortcut for new Twitter
// @description Adds an 'o' shortcut to open any shared links in selected tweet in a new tab in the background. If no link is found, looks for @usernames. And finally if no usernames, looks for hashtags.
// @include http://twitter.com/*
// @author Ankit Ahuja
// ==/UserScript==
// DISCLAIMER: Only tested on Chrome!
document.addEventListener('keyup', function(e) {