Skip to content

Instantly share code, notes, and snippets.

View sendos's full-sized avatar

Andrew Sendonaris sendos

View GitHub Profile
// ==UserScript==
// @name Yahoo Mail Improvements
// @namespace YahooMail
// @description Improve experience of using Yahoo Mail
// @include https://us-mg5.mail.yahoo.com/neo/*
// @version 1
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
@sendos
sendos / Show images inline
Created January 6, 2012 23:09
Bookmarklet to show images inline
javascript:document.documentElement.innerHTML=document.documentElement.innerHTML.replace(/<a%20([^>]*)href=\"(http:\/\/[^\"]+)\.(jpg|JPG|png|PNG|gif|GIF)\"([^>]*)>([^<]+)<\/a>/g,%20"<a%20$1%20href=\"$2.$3\"$4>$5</a><img%20src=\"$2.$3\"%20style=\"border-style:solid;border-width:3px;\"%20width=\"600px\">");%20%20%20%20%20%20%20%20document.documentElement.innerHTML=document.documentElement.innerHTML.replace(/<a%20([^>]*)href=\"http:\/\/imgur.com\/([^\"\/\.]+)\"([^>]*)>([^<]+)<\/a>/g,%20"<a%20$1%20href=\"http://imgur.com/$2\"$3>$4</a><img%20src=\"http://i.imgur.com/$2.jpg\"%20style=\"border-style:solid;border-width:3px;\"%20width=\"600px\">").replace(/<a%20([^>]*)href=\"(http:\/\/www.quickmeme.com\/meme\/)([^\"\/]+)\/?\"([^>]*)>([^<]+)<\/a>/g,%20"<img%20src=\"http://i.qkme.me/$3.jpg\"%20style=\"border-style:solid;border-width:3px;\"%20width=\"300px\"><a%20$1%20href=\"$2$3\"$4>$5</a>").replace(/<a%20([^>]*)href=\"(http:\/\/qkme.me\/)([^\"\/\?]+)[^\"]*\"([^>]*)>([^<]+)<\/a>/g,%20"<img%20src=\"http://i.qkme.me/$3.jp
@sendos
sendos / hn_comments_timeline.user.js
Created September 2, 2011 02:01
HN comments timeline
// ==UserScript==
// @name HN comments timeline
// @namespace sendos
// @description Moves through HN comments chronologically, using the right and left arrow keys
// @include http://news.ycombinator.com/item?id=*
// ==/UserScript==
function selectPost(new_idx)
{
prev_post_idx = current_post_idx;