Skip to content

Instantly share code, notes, and snippets.

@kbinani
Created January 15, 2013 17:04
Show Gist options
  • Save kbinani/4540146 to your computer and use it in GitHub Desktop.
Save kbinani/4540146 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Google Header
// @namespace http://kbinani.info/
// @description
// @include https://mail.google.com/*
// @include https://www.google.com/reader/*
// ==/UserScript==
(function() {
setInterval(function() {
var list = document.getElementsByTagName("a");
for (var i = 0; i < list.length; i++) {
var anchor = list.item(i);
if ("リーダー" === anchor.innerText
|| "Gmail" === anchor.innerText) {
anchor.removeAttribute("target");
}
}
}, 200);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment