Jump to content

User:Technical 13/Scripts/admin eye.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 11:05, 24 September 2013 (Starting point for this developer tool). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var listStyle = mw.util.addPortletLink(
	'p-cactions',
	'#',
	'O.o',
	'pt-admin_eye',
	'View page as an admin',
	null,
	null
);
$( listStyle ).click( function ( e ) {
	e.preventDefault();
	$( 'div.sysop-show, p.sysop-show' ).css( 'display', 'block' );
	$( 'span.sysop-show, small.sysop-show' ).css( 'display', 'inline' );
	$( 'table.sysop-show' ).css( 'display', 'table' );
	$( 'li.sysop-show' ).css( 'display', 'list-item' );
/*
	path.css( 'list-style-type', function (i, val) {
		return val === "decimal" ? "disc" : "decimal";
	});
*/
});