Quelltext der Seite MediaWiki:Gadget-watchlistMessage.js

Zur Navigation springen Zur Suche springen

Du bist aus den folgenden Gründen nicht berechtigt, die Seite zu bearbeiten:

  • Diese Aktion ist auf Benutzer beschränkt, die der Gruppe „Administratoren“ angehören.
  • Diese Seite enthält Text für die Benutzeroberfläche der Software und ist geschützt, um Missbrauch vorzubeugen. Veränderungen können auf MediaWiki/Änderungen vorschlagen werden.
  • Du hast keine Berechtigung, diese JavaScript-Seite zu bearbeiten, da sie alle Besucher betreffen könnte.

Du kannst den Quelltext dieser Seite betrachten und kopieren.

/** Add dismiss buttons to watchlist-message *************************************
*
* Description: Allows multiple dismiss buttons on div.watchlist-message
* Maintainers: [[User:Ruud Koot|Ruud Koot]], [[User:MZMcBride|MZMcBride]], [[User:Merlissimo|Merlissimo]]
*/
$( function() {
var docobj = document.getElementById('bodyContent') || document.getElementById('content') || document;
var watchItems = $('div.watchlist-message', docobj).get();
if(watchItems.length == 0) return;
for(var i=0;i<watchItems.length;i++) {
var watchlistCookieID = parseInt(watchItems[i].className.replace(/.*cookie\-ID\_(\d*).*/ig,'$1'), 10);
if(isNaN(watchlistCookieID)) continue;
if(document.cookie.indexOf('dewiki-hidewatchlistmessage-' + watchlistCookieID + '=yes') != -1) {
watchItems[i].style.display = 'none';
continue;
} else {
watchItems[i].style.display = 'block';
}
var Button = document.createElement('span');
var ButtonLink = document.createElement('a');
var ButtonText = document.createTextNode('Verbergen');
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0

Zurück zur Seite MediaWiki:Gadget-watchlistMessage.js.