Skip to content

Instantly share code, notes, and snippets.

@sprngr
Last active May 9, 2016 17:35
Show Gist options
  • Save sprngr/9595cf989d2573992c49e94ef4efe774 to your computer and use it in GitHub Desktop.
Save sprngr/9595cf989d2573992c49e94ef4efe774 to your computer and use it in GitHub Desktop.
BringBackTheBlue - Tamper Monkey script to add the old link colors back to google. Probably overkill and no way efficient.
// ==UserScript==
// @name BringBackTheBlue
// @version 0.1
// @description Blue it up
// @author sprngr
// @match https://www.google.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('a:link, .w, #prs a:visited, #prs a:active, .q:active, .q:visited, .kl:active, .tbotu {color: #1a0dab;}');
addGlobalStyle('.mblink:visited, a:visited {color: #609;}');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment