您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Versteckt überflüssige Zitate, die aber wieder einblendbar sind.
// ==UserScript== // @name Eishockeyforum - Zitate // @description Versteckt überflüssige Zitate, die aber wieder einblendbar sind. // @namespace ehf neu // @include http://www.eishockeyforum.at/index.php/Thread/* // @include http://www.eishockeyforum.at/index.php/PostAdd/* // @version 20140727 // ==/UserScript== $(document).ready(Greasemonkey_main); function Greasemonkey_main() { var ZitatElem = $("div.messageBody").children("div").children("div.messageText").children(".quoteBox").children("div").children(".quoteBox"); ZitatElem.each ( function() { var itemDiv = $(this); if ((itemDiv.length > 0) && (itemDiv.children("header").children("h3").length > 0)) { itemDiv.children("div").css("display","none"); itemDiv.children("header").children("h3").css("background-color", "rgba(192,192,192,0.25)"); itemDiv.children("header").children("h3").hover( function() { $( this ).css("background-color", "rgba(128,128,128,0.25)").append( $( "<span\ class=\"ehfscriptclick\"> --- Click</span>" ) ); }, function() { $( this ).css("background-color", "rgba(192,192,192,0.25)").find( "span:last" ).remove(); } ); itemDiv.children("header").children("h3").click( function() { itemDiv = $(this); if ( itemDiv.parent("header").parent(".quoteBox").children("div").css("display") == "none"){ itemDiv.parent("header").parent(".quoteBox").children("div").css("display","block"); } else { itemDiv.parent("header").parent(".quoteBox").children("div").css("display","none"); } } ); } } ); var url = window.location.href; var type = url.split('#'); var hash = ''; if(type.length > 1){ hash = type[1]; //$(window).scrollTop($('a#' + hash).position().top); //alert(hash); var element_to_scroll_to = document.getElementById(hash); window.setTimeout(function(){element_to_scroll_to.scrollIntoView(true)}, 500); } /*if(window.location.hash) { alert(window.location.hash.substr(1)); } else { // Fragment doesn't exist }*/ }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址