From 724f5a55a6ee29b76474cfe13bb1c010f2fdf75d Mon Sep 17 00:00:00 2001 From: Umbardacil Date: Wed, 17 Aug 2022 19:53:47 +0200 Subject: [PATCH] Put important to TOC checkbox to properly hide it Solves #28 (potentially) --- ptoc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ptoc.js b/ptoc.js index d1e9b88..bf9242e 100644 --- a/ptoc.js +++ b/ptoc.js @@ -23,6 +23,9 @@ mw.loader.using( 'jquery.throttle-debounce', function () { // Show the ToC ul even if its hidden $floatTOC.find( 'ul' ).show(); + + // Put !important to the checkbox + $floatTOC.find( 'input.toctogglecheckbox' ).css("display", "none !important"); // Hijack links so that we can scroll to the content $floatTOC.find( 'a' ).click( function ( e ) {