Jump to content

MediaWiki:Mobile.js: Difference between revisions

From Leaf Essentials
No edit summary
No edit summary
 
Line 1: Line 1:
mw.hook( 'wikipage.content' ).add( function ( $content ) {
alert("hi")
alert("hi")
mw.hook( 'wikipage.content' ).add( function ( $content ) {
$content.find( 'section.collapsible-block[hidden], .collapsible-block[hidden]' ).each( function () {
$content.find( 'section.collapsible-block[hidden], .collapsible-block[hidden]' ).each( function () {
this.removeAttribute( 'hidden' );
this.removeAttribute( 'hidden' );

Latest revision as of 06:52, 22 November 2026


mw.hook( 'wikipage.content' ).add( function ( $content ) {
alert("hi")
	$content.find( 'section.collapsible-block[hidden], .collapsible-block[hidden]' ).each( function () {
		this.removeAttribute( 'hidden' );
		this.style.contentVisibility = 'visible';
		this.style.display = 'block';
	} );
	$content.find( '.collapsible-heading[aria-expanded="false"]' ).attr( 'aria-expanded', 'true' );
} );