User:PerfektesChaos/js/paneMarker

JavaScript gadget to emphasize browser windows or tabs currently used for input activities. Your valuable wiki contribution will be lost if you forget to save that, or may have been blocked unnoticed due to edit conflict or filter while you jumped to another task.

Multitasking genius? Ever lost in lots of panes and/or windows? paneMarker (not painMaker) will help power users to keep survey over dozens of pages.

Usage

 * If your project has registered this as a gadget, just activate on your Preferences page.
 * Otherwise include the following lines into your common.js or skin dependant like vector.js:


 * The gadget works also with non-WMF sites using MediaWiki 1.18 or higher. You may want to provide your own icon definitions.

Red icon
If your current activity has been rated as vulnerable, like editing or creating a page or section, an attempt is made to display an appropriate icon with red background. However, it depends on browser implementation whether this change becomes visible.
 * Some browsers might refuse icon exchange since current domain could be, but alternative icon comes from   which may be regarded as security leak.
 * If the browser is given a choice between several icon formats the browser will decide on the appropriate image.

Distinguishing mark
On some project sites the name of the current page is leading the document title, therefore the beginning of the name is visible in tab bar and (for separated windows) also in the taskbar — at least for the current window on tabbed pane.

However you don’t know which action is taken right now with this page, since that is described at the end of the title text. To give you an idea whether it is more than only a view, the following characters might be displayed between tab icon and generic document title:
 * This might also be a workaround if some of your browser versions won’t change the icon.
 * The feature is activated automatically if your site is known to display page name first, then activity.
 * Appearance is subject to full customization.

Customization
Insert the following statement into your standard user script like common.js (best before mw.loader.load, if any): Example: Note: Customization may be ignored if not put into a standard user script, since other scripts are loaded later and paneMarker has no knowledge about, won’t wait for them.

Code
Preliminary version on testwiki
 * Not yet kicked off


 * Resource loader:  for Extension:Gadgets
 * Dependencies: ,

Other languages

 * German coming up soon