<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://www.helmstedt-wiki.de/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-watchlistMessage.js</id>
	<title>MediaWiki:Gadget-watchlistMessage.js - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://www.helmstedt-wiki.de/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-watchlistMessage.js"/>
	<link rel="alternate" type="text/html" href="http://www.helmstedt-wiki.de/index.php?title=MediaWiki:Gadget-watchlistMessage.js&amp;action=history"/>
	<updated>2026-08-12T03:48:41Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Helmstedt-Wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://www.helmstedt-wiki.de/index.php?title=MediaWiki:Gadget-watchlistMessage.js&amp;diff=29318&amp;oldid=prev</id>
		<title>Admin: AZ: Die Seite wurde neu angelegt: /** Add dismiss buttons to watchlist-message *************************************  *  *  Description: Allows multiple dismiss buttons on div.watchlist-message  *  Maintainers: Ruud Koot, MZMcBride, Merlissimo  */ $( function() {   var docobj = document.getElementById(&#039;bodyContent&#039;) || document.getElementById(&#039;content&#039;) || document;   var wat…</title>
		<link rel="alternate" type="text/html" href="http://www.helmstedt-wiki.de/index.php?title=MediaWiki:Gadget-watchlistMessage.js&amp;diff=29318&amp;oldid=prev"/>
		<updated>2025-01-28T08:07:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Hilfe:Zusammenfassung_und_Quellen&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Hilfe:Zusammenfassung und Quellen (Seite nicht vorhanden)&quot;&gt;AZ&lt;/a&gt;: Die Seite wurde neu angelegt: &lt;span class=&quot;autocomment&quot;&gt;* Add dismiss buttons to watchlist-message *************************************  *  *  Description: Allows multiple dismiss buttons on div.watchlist-message  *  Maintainers: &lt;a href=&quot;/index.php?title=Benutzer:Ruud_Koot&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Benutzer:Ruud Koot (Seite nicht vorhanden)&quot;&gt;Ruud Koot&lt;/a&gt;, &lt;a href=&quot;/index.php?title=Benutzer:MZMcBride&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Benutzer:MZMcBride (Seite nicht vorhanden)&quot;&gt;MZMcBride&lt;/a&gt;, &lt;a href=&quot;/index.php?title=Benutzer:Merlissimo&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Benutzer:Merlissimo (Seite nicht vorhanden)&quot;&gt;Merlissimo&lt;/a&gt;: &lt;/span&gt; $( function() {   var docobj = document.getElementById(&amp;#039;bodyContent&amp;#039;) || document.getElementById(&amp;#039;content&amp;#039;) || document;   var wat…&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/** Add dismiss buttons to watchlist-message *************************************&lt;br /&gt;
 *&lt;br /&gt;
 *  Description: Allows multiple dismiss buttons on div.watchlist-message&lt;br /&gt;
 *  Maintainers: [[User:Ruud Koot|Ruud Koot]], [[User:MZMcBride|MZMcBride]], [[User:Merlissimo|Merlissimo]]&lt;br /&gt;
 */&lt;br /&gt;
$( function() {&lt;br /&gt;
  var docobj = document.getElementById(&amp;#039;bodyContent&amp;#039;) || document.getElementById(&amp;#039;content&amp;#039;) || document;&lt;br /&gt;
  var watchItems = $(&amp;#039;div.watchlist-message&amp;#039;, docobj).get();&lt;br /&gt;
  if(watchItems.length == 0) return;&lt;br /&gt;
  for(var i=0;i&amp;lt;watchItems.length;i++) {&lt;br /&gt;
    var watchlistCookieID = parseInt(watchItems[i].className.replace(/.*cookie\-ID\_(\d*).*/ig,&amp;#039;$1&amp;#039;), 10);&lt;br /&gt;
    if(isNaN(watchlistCookieID)) continue;&lt;br /&gt;
    if(document.cookie.indexOf(&amp;#039;dewiki-hidewatchlistmessage-&amp;#039; + watchlistCookieID + &amp;#039;=yes&amp;#039;) != -1) {&lt;br /&gt;
      watchItems[i].style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;
      continue;&lt;br /&gt;
    } else {&lt;br /&gt;
      watchItems[i].style.display = &amp;#039;block&amp;#039;;&lt;br /&gt;
    }&lt;br /&gt;
    var Button     = document.createElement(&amp;#039;span&amp;#039;);&lt;br /&gt;
    var ButtonLink = document.createElement(&amp;#039;a&amp;#039;);&lt;br /&gt;
    var ButtonText = document.createTextNode(&amp;#039;Verbergen&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
    ButtonLink.setAttribute(&amp;#039;id&amp;#039;,&amp;#039;dismissButton&amp;#039;);&lt;br /&gt;
    ButtonLink.setAttribute(&amp;#039;href&amp;#039;,&amp;#039;javascript:dismissWatchlistMessage(&amp;#039; + i + &amp;#039;,&amp;#039; + watchlistCookieID + &amp;#039;)&amp;#039;);&lt;br /&gt;
    ButtonLink.setAttribute(&amp;#039;title&amp;#039;,&amp;#039;Nachricht ausblenden&amp;#039;);&lt;br /&gt;
    ButtonLink.appendChild(ButtonText);&lt;br /&gt;
 &lt;br /&gt;
    Button.setAttribute(&amp;#039;style&amp;#039;,&amp;#039;font-size:0.6em;float:right;position:relative;padding-right:4px&amp;#039;);&lt;br /&gt;
    Button.appendChild(document.createTextNode(&amp;#039;[&amp;#039;));&lt;br /&gt;
    Button.appendChild(ButtonLink);&lt;br /&gt;
    Button.appendChild(document.createTextNode(&amp;#039;]&amp;#039;));&lt;br /&gt;
    watchItems[i].insertBefore(Button,watchItems[i].firstChild);&lt;br /&gt;
  }&lt;br /&gt;
});&lt;br /&gt;
 &lt;br /&gt;
window.dismissWatchlistMessage = function(num,cid) {&lt;br /&gt;
  var docobj = document.getElementById(&amp;#039;bodyContent&amp;#039;) || document.getElementById(&amp;#039;content&amp;#039;) || document;&lt;br /&gt;
  var watchItems = $(&amp;#039;div.watchlist-message&amp;#039;, docobj).get();&lt;br /&gt;
  watchItems[num].style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
  var e = new Date();&lt;br /&gt;
  e.setTime( e.getTime() + (3*7*24*60*60*1000) ); //3 Wochen&lt;br /&gt;
  document.cookie = &amp;#039;dewiki-hidewatchlistmessage-&amp;#039; + cid + &amp;#039;=yes; expires=&amp;#039; + e.toGMTString() + &amp;#039;; path=/&amp;#039;;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>