User:Isaacl/script/toggle-discussion-threads-style

From Wikipedia, the free encyclopedia
User script
Toggle discussion threads style rules
DescriptionEnables/disables CSS style rules for discussion threads
Author(s)isaacl
Statusreleased
First releasedAugust 10, 2023; 9 months ago (2023-08-10)
Version1.0
UpdatedAugust 10, 2023; 9 months ago (2023-08-10)
Browser supportsee User:Isaacl/style/discussion-threads § Browser support
SourceUser:isaacl/script/toggle-discussion-threads-style.js

The User:Isaacl/script/toggle-discussion-threads-style script is used in conjunction with the User:Isaacl/style/discussion-threads user style sheet. With both installed, you can temporarily disable (and re-enable) the CSS style rules for discussion threads defined in User:Isaacl/style/discussion-threads.css via a menu item, "Toggle thread style" in the tools menu. Navigating to a new page or reloading the current page will re-enable the CSS style rules.

To install, you can use the script installer gadget, or add the following text to your common.js file:

mw.loader.load('https://en.wikipedia.org/wiki/User:Isaacl/script/toggle-discussion-threads-style.js?action=raw&ctype=text/javascript', 'text/javascript');