User:AntiCompositeNumber/hidePartialBlocks.js

function hide_partial { // only hide if there's no partial block set var partial = $( ".mw-special-Block input[value=partial]" ) if( partial.length && !partial.attr("checked") ) { // hide the partial block options and the partial/sitewide radio buttons $( ".mw-special-Block .mw-block-editing-restriction" ).parents("fieldset").hide; } } mw.hook( 'wikipage.content' ).add( hide_partial );