Skip to content

cohost! - hide pages from menu by wildfirekithara

Details

Authorwildfirekithara

LicenseNo License

Categorycohost.org

Created

Updated

Size1.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

A userstyle that lets you hide specific pages from the pages menu

Notes

NOTE: This userstyle requires some configuration in the code. After installing, see the source code for instructions.

Upon installation, the userstyle is configured to hide the first page from your menu by default.

Source code

/* ==UserStyle==
@name           cohost! - hide pages from menu
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A userstyle that lets you hide specific pages from the pages menu
@author         Glimmer Rhodes
==/UserStyle== */
@-moz-document domain("cohost.org") {
    
/*
 * NOTE: This userstyle requires some modifications to work per your needs.
 *
 * To disable the display of a specific page, remove the surrounding / * and * / from the block
 * for the specific page. The number X in nth-child(X) specifies which page position
 * in the list should be disabled.
 *
 * To re-enable the display of a specific page, you can either restore the surrounding / * and * / (without spaces in between)
 * or simply delete the entire block.
 *
 * For example purposes, the first page in your list will be disabled.
 */
    
    
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(1) {
        display: none;
    }
    
/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(2) {
        display: none;
    }
*/

/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(3) {
        display: none;
    }
*/

/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(4) {
        display: none;
    }
*/    
    
/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(5) {
        display: none;
    }
*/    
    
/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(6) {
        display: none;
    }
*/  
  
/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(7) {
        display: none;
    }    
*/

/*
    li[id^="headlessui-listbox-option-"]:not(.co-filled-button):nth-child(8) {
        display: none;
    }
*/

}

Reviews

No reviews yet.