Difference between revisions 137891 and 137894 on testwiki/// mw:User:PerfektesChaos/js/paneMarker/?.js /// 2012-06-19 [email protected] /// Fingerprint: #0#0# // Mark browser panes (tabbed or window) if particular action taken. // Try to exchange wiki-favicon for a red one if editing a wiki page. // Insert indicating character before document title. // Requires: JavaScript 1.3 (contracted; show full) if ( typeof mw.libs.paneMarker !== "object" ) { mw.libs.paneMarker = { opt: { } }; } mw.libs.paneMarker.vsn = -1.32; mw.libs.paneMarker.heads = "|dewiki|"; // +"|testwiki|"; ⏎ mw.libs.paneMarker.facilitate = function () { // Set document title to relevant page name and site name // Postcondition: // document.title has been set // Uses: // < document.title // Remark: Available since MW 1.20 // 2012-06-07 [email protected] document.title = mw.config.get( "wgRelevantPageName" ) .replace( /_/g, " " ) + " * " + mw.config.get( "wgSiteName" ); }; // .facilitate()⏎ ⏎ ⏎ ⏎ mw.libs.paneMarker.favicon = function ( apply ) { // Try to exchange wiki-favicon // Precondition: // apply -- true: red icon (page used in vulnerable mode) // false: show user defined default project icon // Uses: // > this // > .site (contracted; show full) } // for i if ( n > 1 ) { $favicon = $favicon.eq( 0 ); } for ( i = 0; i < offer.length; i++ ) { $favicon.attr( "href", offer[i][0] ); $favicon.attr( "type", offer[i][1] ); $head.append( $favicon );⏎ if ( i + 1 < offer.length ) { $favicon = $favicon.clone(); } } // for i } } // $favicon.length } // $head }; // .favicon() mw.libs.paneMarker.facilitate = function () { // Set document title to relevant page name and site name // Postcondition: // document.title has been set // Uses: // < document.title // Remark: Available since MW 1.20 // 2012-06-07 [email protected] document.title = mw.config.get( "wgRelevantPageName" ) .replace( /_/g, " " ) + " * " + mw.config.get( "wgSiteName" ); }; // .facilitate()⏎ ⏎ ⏎ ⏎ mw.libs.paneMarker.file = function ( album, assign, access ) { // Retrieve PNG file URL at commons // Precondition: // album -- apple or favicon prefix // assign -- site // access -- hashcode octet // Postcondition: // Returns URL (contracted; show full)// Emacs // Local Variables: // encoding: utf-8-dos // coding: utf-8-dos // fill-column: 80 // End: /// EOF </nowiki> paneMarker/?.js All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test.wikipedia.org/w/index.php?diff=prev&oldid=137894.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|