LogoChanger v1.0.5

replaces the any logo with one of your wish

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       LogoChanger v1.0.5
// @namespace   Logo
// @author     Maxy
// @description replaces the any logo with one of your wish
// @include     http://baidu.com/*
// @include     *.baidu.com/*
// @version     1.0.5
// @grant       none
// ==/UserScript==



// saves all settings of all <img> tags in the tags variable/array
var tags = document.getElementsByTagName('img');


// goes through every entry in the tags array, so through every <img> tag

for (var i = 0; i < tags.length; i++) {


 // replaces the searched image src with the one you want. This happens in ALL <img> tags with the searched src
 
 tags[i].src = tags[i].src.replace('http://img.baidu.com/img/baike/logo-baike.png', 'https://farm4.staticflickr.com/3901/14767310726_7f804f1944_o.png');
 tags[i].src = tags[i].src.replace('http://www.baidu.com/img/baidu_jgylogo3.gif?v=06534357.gif', 'https://farm4.staticflickr.com/3901/14767310726_7f804f1944_o.png');

}