Difference between revisions 137897 and 137906 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) 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: AwgRelevantPageName available since MW 1.20 // 2012-06-0719 [email protected] document.titlevar s = mw.config.get( "wgRelevantPageName" ); if ( ! s ) {⏎ s = mw.config.get( "wgPageName" );⏎ }⏎ document.title = s.replace( /_/g, " " ) + " * " + mw.config.get( "wgSiteName" ); }; // .facilitate() mw.libs.paneMarker.favicon = function ( apply ) { // Try to exchange wiki-favicon (contracted; show full) c = ( this.config.lowChar ? "±" : 916 ); // 'Δ' break; case "History" : c = ( this.config.lowChar ? "^" : 8595 ); // '↓' break; case "Links" : c = ( this.config.lowChar ? ">" : 8594 ); // '→' if ( ! this.config.leave ) { this.facilitate(); }⏎ break; case "Vitally" : if ( c && ! this.lazy ) { c = false; break; } c = "*"; break; default: c = false; } // switch action } if ( c ) { if ( ! this.config.leave ) { if ( action === "Links" ) { this.facilitate(); } } ⏎ if ( typeof c === "number" ) { if ( c > 0 ) { c = String.fromCharCode( c ); } } if ( typeof c === "string" ) { if ( this.config.rightleft ) { document.title = document.title + " " + c; (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=137906.
![]() ![]() 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.
|