Google Search old favicon (2012—2015)

Use old favicon for Google Search (pre September 2015)

As of 2015-09-05. See the latest version.

// ==UserScript==
// @name        Google Search old favicon (2012—2015)
// @author      XXN
// @namespace   XXN
// @description Use old favicon for Google Search (pre September 2015)
// @include     htt*://*.google.*/*
// @include     htt*://google.*/*
// @exclude	/^htt.*://(mail|accounts|support|maps|play|news|drive|translate|plus)\.google\.*.*/
// @exclude     /^htt.*://(mail|accounts|support|maps|play|news|drive|translate|plus)\.google\.co.*/
// @version     1.2
// @grant       none
// ==/UserScript==

//favicon is hosted on external resource. For a script with embedded image, see https://greasyforks.org/ro/scripts/12187-google-old-favicon-2012-2015-v-ii

var favicon_link_html = document.createElement('link');
favicon_link_html.rel = 'icon';
favicon_link_html.href = 'http://www.iconj.com/ico/d/2/d2mdwwgcs3.ico';
favicon_link_html.type = 'image/x-icon';

//Previous version with png image disabled
//favicon_link_html.href = 'http://static.md/615213ab9a594ff04a5c20f325e22454.png';
//favicon_link_html.type = 'image/png';

try { 
  document.getElementsByTagName('head')[0].appendChild( favicon_link_html ); 
}
catch(e) { }
长期地址
遇到问题?请前往 GitHub 提 Issues。