Replace Baidu Logo

用于去掉百度Logo中“网页版”字样。

目前為 2018-03-30 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name:zh-CN 还原百度Logo
// @name Replace Baidu Logo
// @namespace beta
// @author JackieLee
// @description:zh-CN 用于去掉百度Logo中“网页版”字样。
// @include https://www.baidu.com/*
// @version 1.1
// @grant none
// @description 用于去掉百度Logo中“网页版”字样。
// ==/UserScript==

var reg = new RegExp('/img/pc.*_.*.png');
var images = document.querySelectorAll('img');
var i, image;
for (i = 0; i < images.length; i += 1) {
image = images[i];
if (image.src.match(reg)) {
image.src = image.src.replace(/pcindex_.*\.png/,'bd_logo1.png');
image.src = image.src.replace(/pcse_.*\.png/,'baidu_jgylogo3.gif');
}
}