Skip to content

Instantly share code, notes, and snippets.

@jdelamater99
Created December 23, 2015 18:14
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 jdelamater99/b5f852780a0236ce1db4 to your computer and use it in GitHub Desktop.
Save jdelamater99/b5f852780a0236ce1db4 to your computer and use it in GitHub Desktop.
Remove mailto: from urls, so that To field populates with Google Inbox
// ==UserScript==
// @name Remove Mailto From Inbox URL
// @namespace http://jdel.us
// @description Clean up mailto: urls to work with Google Inbox
// @include http://inbox.google.com/u/0/*
// @include https://inbox.google.com/u/0/*
// @version 0.1
// @grant none
// ==/UserScript==
var url = window.location.href;
if (url.match("mailto%3A") != null){
url = url.replace("mailto%3A", "");
window.location.replace(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment