WoD Enhancement

Refine WoD Page!

当前为 2023-10-27 提交的版本,查看 最新版本

// ==UserScript==
// @name         WoD Enhancement
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Refine WoD Page!
// @author       iClaud
// @license      MIT
// @match        *://*.world-of-dungeons.org/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant		 GM_addStyle
// @require      https://apps.bdimg.com/libs/jquery/3.1.4/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    console.log("Hello WoD");
	// Style
	// Tutorial
	GM_addStyle("div.tutorial {max-width:100%!important; min-height:100px!important;font-size:12px; font-style:normal!important;border:1px dotted grey;background-color:#e7d5c72e;color:#666;}");
	GM_addStyle("img.tutorial {display:none!important;}");

	// Gadget
//	GM_addStyle(".gadget_body center{display:none !important;}");
	// Right
	GM_addStyle("#gadgettable-right {min-width:150px;text-align:center}");
	GM_addStyle("#gadgettable-right-gadgets {margin-top:50px;font-size:11px;}");
	GM_addStyle("#gadgettable-right-gadgets .gadget {margin-top:0px;}");
	GM_addStyle("#gadgettable-right-gadgets .gadget:nth-child(even) {background:rgba(200,200,200,0.3);}");
	GM_addStyle("#gadgettable-right-gadgets .gadget {margin-top:0px;}");
	GM_addStyle(".button {font-weight:lighter;border-color:grey;border-style:dotted;background:rgba(200,200,100,0.3);}");
	GM_addStyle("#gadgetNextdungeonTime{background:yellow;}");

	//Top
	GM_addStyle(".gadget_icon:hover {opacity:0.9;}");
//	GM_addStyle("#gadgettable-center-gadgets table:first-child tr:first-child{text-align:center; background:lightblue;}");
	GM_addStyle("#gadgettable-center-gadgets table:nth-child(1) img {margin-left:0px;}");
	GM_addStyle("#gadgettable-center-gadgets table:nth-child(2) img {margin-left:1px;margin-bottom:3px;}");
	GM_addStyle("#gadgettable-center-gadgets table:nth-child(1) img:hover {}");
	GM_addStyle("#gadgettable-center-gadgets table:nth-child(2) img:hover {}");
	GM_addStyle(".world_list {text-align:center; background:lightgrey;color:black;border:1px dotted grey;padding-left:10px;padding-right:10px;font-weight:lighter;font-style:italic;}");
	GM_addStyle(".gadget.clock{background:#f3f1b8;}");
	GM_addStyle(".progressBar_container{border:0px solid grey;opacity:0.9;font-size:12px;}");
	GM_addStyle("TR.boardcon2 {background-color:white; font-size:12px;}");
	GM_addStyle("div.gadget.footer {font-size:10px;color:grey;};");

	GM_addStyle("span {font-size:12px;}");
	GM_addStyle("TR.boardhead {background-color:lightgrey;}");
	GM_addStyle("TR.boardcon1{background-color:#eee;}");
	GM_addStyle("td .quotebody{color:white;}");

	GM_addStyle('.layout_dungeon_description{width:90%;}');


	GM_addStyle('div.happyhour.soon {background:lightgrey; color:#555;font-size:11px;}; \
				 .paginator_selected { font-size:11px;color:#eee;}; \
				 table.content_table > * > tr.header { background-color:#e0e0e0; } \
				 table.content_table.mail {width:100%; font-size:11px;} \
				 table.content_table.mail a {font-size:11px; color: black;} \
				 table.content_table.mail tr.row0 {background-color: lightgrey;} \
				 .subject_standard{background-color: rgba(0,0,0,0);} \
				 #smarttabs__details_inner>table:nth-child(1) {margin-bottom:220px; margin-top:20px;}; \
				 #smarttabs__details_inner>table:nth-child(2) {position:absolute;top:20px;right:0px;width:300px;}; \
				 #smarttabs__details_inner .boardavatar:nth-child(1) {margin-top:-10px;}; \
				');

	//Some css can't be applied in advanced
	$('.paginator_selected').css('font-size','11px').css('color','#eee');
	$('table.content_table > * > tr.header').css('background-color','#e0e0e0');
	$('#smarttabs__details_inner>table:nth-child(2)').css('position','absolute').css('top','20px').css('right','0px').css('width','300px');
	$('#smarttabs__details_inner .boardavatar:nth-child(1)').css('margin-top','-10px');
/*
	$('span').css('font-size','12px');
	$('TR.boardhead').css('background-color','lightgrey');
	$('tr.boardcon1').css('background-color','#eee');
	$('td .quotebody').css('color','white');
	$('.layout_dungeon_description').css('width','90%');
	$('.content_table table').css('width','auto');

	$('div.happyhour.soon').css('background','lightgrey').css('color','#555').css('font-size','11px');
	$('.paginator_selected').css('font-size','11px').css('color','#eee');
	$('table.content_table > * > tr.header').css('background-color','#e0e0e0');
	$('table.content_table.mail').css('width','100%').css('font-size','11px');
	$('table.content_table.mail a').css('font-size','11px').css('color','black');
	$('table.content_table.mail tr.row0').css('background-color','lightgrey');
	$('.subject_standard').css('background-color','rgba(0,0,0,0)');
	$('#smarttabs__details_inner>table:nth-child(1)').css('margin-bottom','220px').css('margin-top','20px');
	$('#smarttabs__details_inner>table:nth-child(2)').css('position','absolute').css('top','20px').css('right','0px').css('width','300px');
	$('#smarttabs__details_inner .boardavatar:nth-child(1)').css('margin-top','-10px');
*/



	//Ticker
	GM_addStyle("#gadgettable-center-gadgets .ticker {text-align:center; background:#d9a7a730;font-family:Kaiti!important;font-style:normal;}");
	GM_addStyle("#gadgettable-center-gadgets .ticker_msg {font-weight:normal!important;}");
	GM_addStyle(".ticker_label{font-style:normal!important;}");
	GM_addStyle("#gadgettable-center-gadgets .ticker:hover {opacity:0.9;}");
	GM_addStyle(".hints.content{opacity:0.9;font-size:11px;}");



	//Body

	GM_addStyle(".search_container{width:100%;}");
	GM_addStyle(".search_short.texttoken{width:100%;text-align:right;}");
	GM_addStyle("table.content_table{width:100%;font-size:xx-small;}");
	GM_addStyle("table.content_table > * > tr > th, table.content_table > * > tr > td{border:0px solid white;}");
	GM_addStyle("table.content_table > * > tr.row0{background:#eee;}");
	GM_addStyle("table.content_table > * > tr.row1{background:#fff;}");
	GM_addStyle("table.content_table .header .clickable{font-size:10px; border-left-width:0px!important;border-right-width:0px!important;border-top-width:0px!important;border-bottom-width:0px!important;}");
	GM_addStyle("input{border:1px solid grey!important;}");
	GM_addStyle(".gadget_body p{border-bottom:1px dotted lightgrey!important; font-size:12px;padding:10px;}");
	GM_addStyle(".gadget_body p{background:rgba(200,200,200,0.2);}");


	GM_addStyle("body {font-family:'Microsoft Yahei'!important;}");
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址