dirtywarez.com > Misc UI Tweaks

Tweaking misc. UI in the Steam Point Shop

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        dirtywarez.com > Misc UI Tweaks
// @namespace    http://dirtywarez.com/
// @match       https://forum.dirtywarez.com/threads/*
// @version      1.0
// @author       Jeremy Boutin
// @license      MIT
// @require      	https://code.jquery.com/jquery-1.9.1.min.js
// @description  Tweaking misc. UI in the Steam Point Shop
// @grant        GM_addStyle
// @grant        GM.getValue
// @grant        GM_log
// @grant        GM_setClipboard
// ==/UserScript==

GM_addStyle (`
	.bbCodeBlock-content {
		max-height: fit-content !important;
	}
`);

$.noConflict();

jQuery(window).on('load popstate', function(event) {
	setTimeout(function(){
  	 jQuery('pre[class="bbCodeCode"] code').each(function() {
		const rglinks = jQuery(this).html();
		console.log(jQuery(this).html());
	  	let rglinksupdated = rglinks.replace(/rg.to/g,'rapidgator.net');
		rglinksupdated = rglinks.replace(/.html/g,'');
		jQuery(this).html(rglinksupdated)

	 });
	}, 350);
});