1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

Automatically showing spoilers

Discussion in 'Sorcerous Sundries' started by SlickRCBD, Sep 9, 2023.

  1. SlickRCBD Gems: 29/31
    Latest gem: Glittering Beljuril


    Resourceful Adored Veteran

    Joined:
    May 7, 2005
    Messages:
    3,136
    Media:
    47
    Likes Received:
    188
    Gender:
    Male
    An offline conversation has revealed that userstyles.org seems to be not working in Firefox. This conversation came about because somebody was complaining about having to manually expand spoiler tags on xenforo sites.
    I've used a Stylus Stylesheet (formerly the open-source Stylish before it was purchased by a corporate raider who made it into spyware that was promptly de-listed from Chrome and Firefox's addon pages, a fork was made by somebody else without the spyware) to solve this issue for years. That addon can be found here:
    https://userstyles.org/styles/123956/sb-sv-qq-show-spoilers
    While it was created for Spacebattles, Sufficient Velocity, and Questionable Questing, all you have to do is add Sorcerers.net/community to the list of sites with "URLs starting with" instead of "URLS on the domain".

    Here I'm going to insert the actual stylus stylesheet in CODE tags so people can copy/paste it in.
    Again, the source is :
    https://userstyles.org/styles/123956/sb-sv-qq-show-spoilers
    Code:
    /* ==UserStyle==
    @name           SB/SV/QQ Show Spoilers
    @namespace      USO Archive
    @author         mistakenot
    @description    `Reveals content blocks hidden under [SPOILER] tags. Limitation: cannot close spoiler tags while userstyle is active; must disable style to close spoiler tags.`
    @version        20190714.3.37
    @license        CC-BY-SA-4.0
    @preprocessor   uso
    ==/UserStyle== */
    @-moz-document domain("forums.spacebattles.com"), domain("forums.sufficientvelocity.com"), domain("forum.questionablequesting.com"), url-prefix("https://sorcerers.net/community/threads/") {
    /* for XF1 */
    .SpoilerTarget {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* for XF2 */
    .bbCodeSpoiler-content {
        display: block !important;
        opacity: 1 !important;
        height: auto !important;
        overflow-y: visible !important;
    }
    }
    
    Note again, I modified this to add Sorcerer's Place to the list of domains, but that was the ONLY change I made.
    It should be similarly possible to modify it to work on any other Xenforo site, especially if they look identical to SB/SV/QQ or SP.

    To use it, you need the Stylus extension for Chrome or Firefox.
    Also although it is NOT recommended as it might cause a memory leak, there is a Greamonkey/Tapermonkey version.
    https://greasyfork.org/en/scripts/17041-sb-sv-qq-expand-spoiler-tags
    Again, the Stylus version is far more efficient all around and the Greasemonkey version has been known to cause memory leaks when dealing with multiple tabs.

    EDIT: Another thread has covered this and clued me in to this link:
    https://uso.kkx.one/style/123956
     
    Last edited: Sep 13, 2023
    Taluntain likes this.
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.