您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides Prices on Colosseum Reservation System
// ==UserScript== // @name Hide Prices on Colosseum Reservation System // @namespace https://github.com/scrool/hide-colloseum-prices // @version 1.10 // @description Hides Prices on Colosseum Reservation System // @match https://online.colosseum.eu/* // @grant GM_addStyle // @grant GM.addStyle // @grant GM_log // @license MIT // ==/UserScript== (function() { 'use strict'; function setup() { GM_log("Setup()"); $('[data-toggle="tooltip"]').each(function() { if (!$(this).data('prices-hidden')) { const originalTitle = $(this).attr('data-original-title'); if (originalTitle) { GM_log(`Original title: ${originalTitle}`); const titleParts = originalTitle.split('<br/>'); titleParts.pop(); const updatedTitle = titleParts.join('<br/>'); $(this).attr('data-original-title', updatedTitle); $(this).data('prices-hidden', true); GM_log(`Updated title: ${updatedTitle}`); } } }); } const css = ` .priceValue, .cart-ticket-price, .hallPrice, .PriceCategoryLabel { display: none !important; } `; if (typeof GM_addStyle === 'function') { GM_addStyle(css); } else if (typeof GM !== 'undefined' && typeof GM.addStyle === 'function') { GM.addStyle(css); } else { const style = document.createElement('style'); style.textContent = css; (document.head || document.documentElement).appendChild(style); } setup(); $(document).ajaxComplete(setup); })();