Greasy Fork 还支持 简体中文。

dATitleCleaner

Sets a standard "dA: something" title for all deviantART pages

目前為 2014-05-30 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name          dATitleCleaner
// @version       0.7
// @namespace     http://hoffer.cx
// @description   Sets a standard "dA: something" title for all deviantART pages
// @include       http://deviantart.com/*
// @include       http://*.deviantart.com/*
// ==/UserScript==

/*
version:      0.7
last update:  2008.08.26
by:           http://rotane.deviantart.com/
contact:      [email protected]
licence:      Licensed under the GNU General Public License, 
              version 2 (but no later version!)

This script replaces most titles to a coherent "dA: something" format, 
excluding pages on dAmn (I suggest using dAmn.extend for that).
Feel free to contact me if you find any pages I missed!

version history:
v0.7   2008.08.26 - added Activity, Gallery Stats, Pageviews
v0.6   2008.08.23 - updated for dA v6
v0.4   2006.09.21 - added Browse and deviant's journal sub-pages
v0.3   2006.09.04 - added deviant's prints and store pages
v0.2   2006.09.04 - initial release
v0.1   2006.08.20 - private testing
*/

t = document.title;
u = window.location.href;

if	(t.indexOf("\'s Forums") > 1) {
	document.title = t.substring(12);
	document.title = 'dA: ' + document.title.replace("\'s Forums", ": Forums");
}

else if (t.indexOf('on deviantART') > 1) {
	document.title = 'dA: ' + t.replace(' on deviantART', '');
}

else if (t.indexOf("\'s deviantART gallery") > 1) {
	document.title = 'dA: ' + t.replace("\'s deviantART gallery", ": Gallery");
}

else if (t.indexOf("\'s deviantART favourites") > 1) {
	document.title = 'dA: ' + t.replace("\'s deviantART favourites", ": Favourites");
}

else if (t.indexOf("\'s deviantART Journal") > 1) {
	document.title = 'dA: ' + t.replace("\'s deviantART Journal", ": Journal");
}

else if (t.indexOf("\'s deviantART Forum") > 1) {
	document.title = 'dA: ' + t.replace("\'s deviantART Forum", ": Forum");
}

else if (t.indexOf("\'s Activity") > 1) {
	document.title = 'dA: ' + t.replace("\'s Activity", ": Activity");
}

else if (t.indexOf("\'s Pageviews") > 1) {
	x = t.replace("\'s Pageviews", ": Pageviews");
	document.title = x.replace("deviantART", "dA");
}

else if (t.indexOf("\'s Gallery Stats") > 1) {
	x = t.replace("\'s Gallery Stats", ": Gallery Stats");
	document.title = x.replace("deviantART", "dA");
}

else if (t.indexOf("\'s Polls") > 1) {
	x = t.replace("\'s Polls", ": Polls");
	document.title = x.replace("deviantART", "dA");
}

else if	(t.indexOf('News: ') == 0) {
	document.title = 'dA: News: ' + t.substring(6);
}

else if (t.indexOf('Browse deviantART') == 0) {
	document.title = t.replace('Browse deviantART', 'dA: Browse');
}

else if	(u.indexOf('.deviantart.com\/prints\/') > 1 && u.substr(0,7) == 'http:\/\/') {
	document.title = u.substring(7);
	document.title = 'dA: ' + document.title.replace(".deviantart.com\/prints\/", ": Prints");
}

else if	(u.indexOf('.deviantart.com\/store\/') > 1 && u.substr(0,7) == 'http:\/\/') {
	document.title = u.substring(7);
	document.title = 'dA: ' + document.title.replace(".deviantart.com\/store\/", ": Store");
}

else if (t.indexOf('Your Journal') == 0) {
	document.title = t.replace('Your Journal', 'dA: Journal');
}

else if (t.indexOf('Your Journal Enhancements') == 0) {
	document.title = t.replace('Your Journal Enhancements', 'dA: Journal Enhancements');
}

else if (t.indexOf('Favourites for ') == 0) {
	document.title = t.replace('Favourites for ', 'dA: ') + ': Favourites';
}

else if	(t.indexOf('deviantART: ') == 0) {
	document.title = 'dA: ' + t.substring(12);
}

else if (t.indexOf('deviantART ') == 0) {
	document.title = 'dA: ' + t.substring(11);
}