User:1233/Admins.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | This user script seems to have a documentation page at User:1233/Admins. |
/* Toggle VF */
// 05 Apr 16 0108
function dotogg()
{
$( 'head' ).append( '<style type="text/css" media="screen">' + ' ul { list-style: none; }' + '</style>' );
$( 'head' ).append( '<style type="text/css" media="print">' + ' ul { list-style: none; }' + '</style>' );
$( ".mw-headline[id='References'] " ).toggle();
$( ".reference" ).toggle();
$( "ol.references" ).toggle();
$( ".toc" ).toggle();
$( ".template" ).toggle();
$( ".navbox" ).toggle();
$( ".navbar" ).toggle();
$( ".thumb" ).toggle();
$( ".wikitable" ).toggle();
$( ".toccolours" ).toggle();
$( ".hatnote" ).toggle();
$( ".hlist" ).toggle();
$( ".mw-headline[id='External_Links'] " ).toggle();
$( ".external" ).toggle();
// $( ".external.text" ).show(); // showing only Ext Links
//
$( ".ambox" ).toggle();
$( ".mbox" ).toggle();
$( ".ombox" ).toggle();
$( ".dmbox" ).toggle();
$( ".fmbox" ).toggle();
$( ".messagebox" ).toggle();
$( ".vertical-navbox" ).toggle();
$( ".infobox" ).toggle();
$( ".infobox.sisterproject" ).toggle();
$( ".infobox.subdivision" ).toggle();
$( ".dablink" ).toggle();
$( ".metadata" ).toggle();
$( ".editlink" ).toggle();
$( ".navbar" ).toggle();
//
$( "#siteSub" ).toggle();
$( ".printfooter" ).toggle();
$( "#catlinks, .catlinks" ).toggle();
$( "#footer" ).toggle();
$( "#header" ).toggle();
$( ".image" ).toggle();
$( ".metadata" ).toggle();
$( ".protected" ).toggle();
$( ".boilerplate" ).toggle();
$( ".mw-editsection-bracket" ).toggle();
$( ".mw-editsection" ).toggle();
}
var codeload;
if (codeload!=9999) {
dotogg();
firstHeading.style.textAlign = 'center';
$( ".Template-Fact" ).hide();
$("#coll-create_a_book").hide();
$("#coll-download-as-rdf2latex").hide();
// $("#t-print").replaceWith('<a href="/w/index.php?title=Nunatak&printable=yes" title="Printable version of this page [p]" accesskey="p">Printable VF</a></li>');
codeload=9999; }
var toggflag=0;
mw.loader.using( 'mediawiki.util', function () {
$( document ).ready( function() {
var ToggVF = mw.util.addPortletLink( "p-tb", "#", "Toggle VF", "t-Toggle VF","Convert to Voice-Friendly format",'4');
$( ToggVF ).click( function() {
toggflag=toggflag+1;
dotogg();
if (toggflag==1) {firstHeading.style.textAlign = 'left';
$( ".Template-Fact" ).show(); }
if (toggflag==2) {firstHeading.style.textAlign = 'center';
$( ".Template-Fact" ).hide();
toggflag=0 ; }
} );
} );
} );