Created
December 23, 2015 18:14
-
-
Save jdelamater99/b5f852780a0236ce1db4 to your computer and use it in GitHub Desktop.
Remove mailto: from urls, so that To field populates with Google Inbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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