dA_signature_visibility

alter appearance of signatures

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           dA_signature_visibility
// @namespace      dA_signature_visibility
// @description    alter appearance of signatures
// @include        http://*.deviantart.*
// @include        http://sta.sh/*
// @require    	http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @version        1.81
// @grant		   GM_addStyle
// ==/UserScript==

(function(){
// var $=unsafeWindow.jQuery,holder,query,offset,fPage,pPage,lPage;
if(typeof $ == "undefined")return;

function signat(){
	var coms = $(".text.text-ii:not(div[dA_sig_vis_finished])").each(function(index, value){
		var sig=$(this).find(".cc-signature");
		if(sig.length!=0){var sigt=sig.html();sig.remove();}else{$(this).addClass("dA_sig_vis_cont");return;}		
		$(this).html("<div class='dA_sig_vis_cont'>"+$(this).html()+"</div><div class='dA_sig_vis_sig'>"+sigt+"</div>");
		$(this).attr("dA_sig_vis_finished",true);
	});
}

function urlpruf(){
	setTimeout(urlpruf,500);
	if($(".text.text-ii:not(div[dA_sig_vis_finished])").length){signat();return true;}	
}
GM_addStyle(".ch-ctrl.cc-in{min-height:100px;} .ch-ctrl.cc-in{padding:0px;} .cc-meta{padding:8px 8px 0px 8px;} .dA_sig_vis_cont{padding:0px 8px 4px 8px;} .dA_sig_vis_sig{padding:8px;background-color:#c7d1c3;color:#777;} .dA_sig_vis_sig a{color:#777!important;}");
 urlpruf();
})();