Page MenuHomeWickedGov Phorge

inline.js
No OneTemporary

Size
672 B
Referenced Files
None
Subscribers
None

inline.js

/*
* Citizen
*
* Inline script used in includes/Hooks/SkinHooks.php
*/
/**
* Backported from MW 1.42
* Modified to use localStorage only
*/
window.clientPrefs = () => {
let className = document.documentElement.className;
const storage = localStorage.getItem( 'mwclientpreferences' );
if ( storage ) {
// TODO: Just use array for localStorage
storage.split( ',' ).forEach( ( pref ) => {
className = className.replace(
new RegExp( '(^| )' + pref.replace( /-clientpref-\w+$|[^\w-]+/g, '' ) + '-clientpref-\\w+( |$)' ),
'$1' + pref + '$2'
);
} );
document.documentElement.className = className;
}
};
( () => {
window.clientPrefs();
} )();

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 13:20 (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/3a/4c73820cc9edef4c6b42124bf8d5
Default Alt Text
inline.js (672 B)

Event Timeline