https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Benutzer%3AP.Copp%2Fscripts%2Fquickrespond.js
Benutzer:P.Copp/scripts/quickrespond.js - Versionsgeschichte
2025-05-23T10:13:30Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.45.0-wmf.2
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=211191316&oldid=prev
Hgzh: deaktiviert
2021-04-22T14:00:46Z
<p>deaktiviert</p>
<a href="//de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=211191316&oldid=208361918">Änderungen zeigen</a>
Hgzh
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=208361918&oldid=prev
Jon (WMF): maintenance: more info ReferenceError: appendCSS is not defined
2021-02-02T17:06:58Z
<p>maintenance: <a href="https://meta.wikimedia.org/wiki/User:Jon_(WMF)/Edit_to_user_or_gadget_script" class="extiw" title="metawiki:User:Jon (WMF)/Edit to user or gadget script">more info</a> ReferenceError: appendCSS is not defined</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 2. Februar 2021, 19:06 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 3:</td>
<td colspan="2" class="diff-lineno">Zeile 3:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d : [],</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> d : [],</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> QR : function (sig) {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> QR : function (sig) {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> this.section = quickRespond.cursection;</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> this.section = quickRespond.cursection;<ins style="font-weight: bold; text-decoration: none;">a</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> this.sig = sig; </div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> this.sig = sig; </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> this.section.sigs[sig] = (this.section.sigs[sig] || 0) + 1;</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> this.section.sigs[sig] = (this.section.sigs[sig] || 0) + 1;</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 253:</td>
<td colspan="2" class="diff-lineno">Zeile 253:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>if( wgNamespaceNumber > 0 && ( wgAction == 'view' || wgAction == 'historysubmit' ) ) {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>if( wgNamespaceNumber > 0 && ( wgAction == 'view' || wgAction == 'historysubmit' ) ) {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <del style="font-weight: bold; text-decoration: none;">addOnloadHook</del>(function() {</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <ins style="font-weight: bold; text-decoration: none;">$</ins>(function() {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> || document.getElementById('mw_contentholder')</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> || document.getElementById('mw_contentholder')</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 259:</td>
<td colspan="2" class="diff-lineno">Zeile 259:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.recAddQRlinks(content);</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.recAddQRlinks(content);</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> });</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> });</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <del style="font-weight: bold; text-decoration: none;">appendCSS</del>('.quickrespondlink {font-size: x-small;}\n'</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <ins style="font-weight: bold; text-decoration: none;">mw.util.addCSS</ins>('.quickrespondlink {font-size: x-small;}\n'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> +'.quickrespondpreview {border: 1px solid #bbbbbb;padding: 0.2em;}\n'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> +'.quickrespondpreview {border: 1px solid #bbbbbb;padding: 0.2em;}\n'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> +'.quickrespondform textarea {width: 99%}\n'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> +'.quickrespondform textarea {width: 99%}\n'</div></td>
</tr>
</table>
Jon (WMF)
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=119706298&oldid=prev
H-stt: https://de.wikipedia.org/wiki/Wikipedia:Technik/Skin/Werkstatt#manualarchive_.26_quickrespond_gehen_nicht_mehr
2013-06-19T13:22:50Z
<p>https://de.wikipedia.org/wiki/Wikipedia:Technik/Skin/Werkstatt#manualarchive_.26_quickrespond_gehen_nicht_mehr</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 19. Juni 2013, 15:22 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 35:</td>
<td colspan="2" class="diff-lineno">Zeile 35:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection = new quickRespond.Section();</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection = new quickRespond.Section();</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.nodeName == 'SPAN') {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.nodeName == 'SPAN') {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> if (node.className == 'editsection') {</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> if (node.className == '<ins style="font-weight: bold; text-decoration: none;">mw-</ins>editsection') {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var match = node.childNodes[1].href.match(/\?title=([^&]*).*&section=T?-?(\d*)/);</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var match = node.childNodes[1].href.match(/\?title=([^&]*).*&section=T?-?(\d*)/);</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.page = match[1];</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.page = match[1];</div></td>
</tr>
</table>
H-stt
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=98229392&oldid=prev
P.Copp: Replace missing ts_getInnerText
2012-01-11T13:33:59Z
<p>Replace missing ts_getInnerText</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 11. Januar 2012, 15:33 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 40:</td>
<td colspan="2" class="diff-lineno">Zeile 40:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.num = match[2];</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.num = match[2];</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.className == 'mw-headline') {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.className == 'mw-headline') {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.heading = <del style="font-weight: bold; text-decoration: none;">ts_getInnerText</del>(node).replace( /^↑ */, ''); //Remove arrow inserted by some other gadget</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.heading = <ins style="font-weight: bold; text-decoration: none;">$</ins>(<ins style="font-weight: bold; text-decoration: none;"> </ins>node<ins style="font-weight: bold; text-decoration: none;"> ).text(</ins>).replace( /^↑ */, ''); //Remove arrow inserted by some other gadget</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
</tr>
</table>
P.Copp
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=79437073&oldid=prev
P.Copp: fix für Pfeil-Hoch-Helferlein, siehe http://de.wikipedia.org/w/index.php?title=diff=76648762&oldid=76596404
2010-09-23T03:18:08Z
<p>fix für Pfeil-Hoch-Helferlein, siehe http://de.wikipedia.org/w/index.php?title=diff=76648762&oldid=76596404</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 23. September 2010, 05:18 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 40:</td>
<td colspan="2" class="diff-lineno">Zeile 40:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.num = match[2];</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.num = match[2];</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.className == 'mw-headline') {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> } else if (node.className == 'mw-headline') {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.heading = ts_getInnerText(node);</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> quickRespond.cursection.heading = ts_getInnerText(node<ins style="font-weight: bold; text-decoration: none;">).replace( /^↑ */, ''</ins>);<ins style="font-weight: bold; text-decoration: none;"> //Remove arrow inserted by some other gadget</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }</div></td>
</tr>
</table>
P.Copp
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=70225200&oldid=prev
P.Copp: Klammer zuviel
2010-02-04T12:45:37Z
<p>Klammer zuviel</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 4. Februar 2010, 14:45 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 252:</td>
<td colspan="2" class="diff-lineno">Zeile 252:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>if<del style="font-weight: bold; text-decoration: none;">( </del>( wgNamespaceNumber > 0 && ( wgAction == 'view' || wgAction == 'historysubmit' ) ) {</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>if( wgNamespaceNumber > 0 && ( wgAction == 'view' || wgAction == 'historysubmit' ) ) {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> addOnloadHook(function() {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> addOnloadHook(function() {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
</tr>
</table>
P.Copp
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=70225173&oldid=prev
P.Copp: Ausweitung auf alle Namensräume außer Artikel- und Spezial-, siehe http://de.wikipedia.org/w/index.php?diff=70190760&oldid=70091060
2010-02-04T12:45:01Z
<p>Ausweitung auf alle Namensräume außer Artikel- und Spezial-, siehe http://de.wikipedia.org/w/index.php?diff=70190760&oldid=70091060</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 4. Februar 2010, 14:45 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 252:</td>
<td colspan="2" class="diff-lineno">Zeile 252:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>if (<del style="font-weight: bold; text-decoration: none;">(</del>wgNamespaceNumber<del style="font-weight: bold; text-decoration: none;">==4</del> <del style="font-weight: bold; text-decoration: none;">||</del> <del style="font-weight: bold; text-decoration: none;">wgNamespaceNumber</del> <del style="font-weight: bold; text-decoration: none;">%</del> <del style="font-weight: bold; text-decoration: none;">2</del> == <del style="font-weight: bold; text-decoration: none;">1)</del> <del style="font-weight: bold; text-decoration: none;">&&</del> wgAction == '<del style="font-weight: bold; text-decoration: none;">view</del>') {</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>if<ins style="font-weight: bold; text-decoration: none;">(</ins> (<ins style="font-weight: bold; text-decoration: none;"> </ins>wgNamespaceNumber <ins style="font-weight: bold; text-decoration: none;">></ins> <ins style="font-weight: bold; text-decoration: none;">0</ins> <ins style="font-weight: bold; text-decoration: none;">&&</ins> <ins style="font-weight: bold; text-decoration: none;">( wgAction</ins> == <ins style="font-weight: bold; text-decoration: none;">'view'</ins> <ins style="font-weight: bold; text-decoration: none;">||</ins> wgAction == '<ins style="font-weight: bold; text-decoration: none;">historysubmit</ins>'<ins style="font-weight: bold; text-decoration: none;"> ) </ins>) {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> addOnloadHook(function() {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> addOnloadHook(function() {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> var content = document.getElementById('bodyContent')</div></td>
</tr>
</table>
P.Copp
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=56232287&oldid=prev
P.Copp: update lokalisierte zeitzone
2009-02-04T11:23:24Z
<p>update lokalisierte zeitzone</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 4. Februar 2009, 13:23 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 26:</td>
<td colspan="2" class="diff-lineno">Zeile 26:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> recAddQRlinks : function (node) {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> recAddQRlinks : function (node) {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (node.nodeType == 3 && quickRespond.cursection.page) {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (node.nodeType == 3 && quickRespond.cursection.page) {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> var matches = /.{20}\(CES?T\)/g.exec(node.nodeValue);</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> var matches = /.{20}\(<ins style="font-weight: bold; text-decoration: none;">(?:</ins>CES?T<ins style="font-weight: bold; text-decoration: none;">|MES?Z)</ins>\)/g.exec(node.nodeValue);</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (!matches) return;</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if (!matches) return;</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> for (var i=0;i<matches.length;i++)</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> for (var i=0;i<matches.length;i++)</div></td>
</tr>
</table>
P.Copp
https://de.wikipedia.org/w/index.php?title=Benutzer:P.Copp/scripts/quickrespond.js&diff=53696101&oldid=prev
P.Copp: AZ: Die Seite wurde neu angelegt: var quickRespond = { cursection : false, d : [], QR : function (sig) { this.section = quickRespo...
2008-12-02T23:11:43Z
<p><a href="/wiki/Hilfe:Zusammenfassung_und_Quelle#Auto-Zusammenfassung" class="mw-redirect" title="Hilfe:Zusammenfassung und Quelle">AZ</a>: Die Seite wurde neu angelegt: var quickRespond = { cursection : false, d : [], QR : function (sig) { this.section = quickRespo...</p>
<p><b>Neue Seite</b></p><div>var quickRespond = {<br />
cursection : false,<br />
d : [],<br />
QR : function (sig) {<br />
this.section = quickRespond.cursection;<br />
this.sig = sig; <br />
this.section.sigs[sig] = (this.section.sigs[sig] || 0) + 1;<br />
this.signum = this.section.sigs[sig];<br />
this.num = quickRespond.d.length;<br />
quickRespond.d.push(this);<br />
},<br />
Section : function () {<br />
this.sigs = {};<br />
},<br />
Link : function (text,title,func,num) {<br />
this.link = document.createElement('a');<br />
this.link.href = 'javascript:quickRespond.d[' + num + '].' + func + '();';<br />
this.link.title = title;<br />
this.link.appendChild(document.createTextNode(text));<br />
this.span = document.createElement('span');<br />
this.span.appendChild(document.createTextNode(' ['));<br />
this.span.appendChild(this.link);<br />
this.span.appendChild(document.createTextNode('] '));<br />
this.span.className = 'quickrespondlink';<br />
},<br />
recAddQRlinks : function (node) {<br />
if (node.nodeType == 3 && quickRespond.cursection.page) {<br />
var matches = /.{20}\(CES?T\)/g.exec(node.nodeValue);<br />
if (!matches) return;<br />
for (var i=0;i<matches.length;i++)<br />
var qr = new quickRespond.QR(matches[i]);<br />
qr.makeEditlink(node);<br />
} else if (node.nodeType == 1) {<br />
if (node.nodeName.match(/H[123456]/i)) {<br />
quickRespond.cursection = new quickRespond.Section();<br />
} else if (node.nodeName == 'SPAN') {<br />
if (node.className == 'editsection') {<br />
var match = node.childNodes[1].href.match(/\?title=([^&]*).*&section=T?-?(\d*)/);<br />
quickRespond.cursection.page = match[1];<br />
quickRespond.cursection.num = match[2];<br />
} else if (node.className == 'mw-headline') {<br />
quickRespond.cursection.heading = ts_getInnerText(node);<br />
}<br />
}<br />
if (node.hasChildNodes())<br />
for (var i=0;i<node.childNodes.length;i++)<br />
quickRespond.recAddQRlinks(node.childNodes[i]);<br />
}<br />
},<br />
callApi : function (query,data,cb) {<br />
var method = data ? 'POST' : 'GET';<br />
var url = wgScriptPath + '/api.php?format=json&' + query;<br />
var req = sajax_init_object();<br />
if (!req) {alert('AJAX wird von diesem Browser nicht unterstützt.');return;}<br />
req.open(method,url,true);<br />
if (method=='POST')<br />
req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');<br />
req.onreadystatechange = function() {<br />
if (req.readyState == 4) {<br />
if (req.status == 200)<br />
eval('cb(' + req.responseText + ');');<br />
else if (confirm('Verbindungsfehler. Erneut versuchen?'))<br />
quickRespond.callApi(query,data,cb);<br />
}<br />
};<br />
req.send(data || '');<br />
delete req;<br />
}<br />
}<br />
<br />
//API functions<br />
quickRespond.Section.prototype.fetchContent = function (qr,reload) {<br />
var sc = this;<br />
if (!reload && sc.content) {qr.checkSection();return;}<br />
var query = 'action=query&rvprop=content|timestamp&rvsection=' + sc.num + '&titles='<br />
+ sc.page + '&prop=revisions';<br />
if (!quickRespond.token) query += '|info&intoken=edit';<br />
quickRespond.callApi(query,'',function (res) {<br />
if (!res || !res.query || !res.query.pages) {alert('Abschnitt wurde verändert oder entfernt.');return;}<br />
for (var i in res.query.pages) {<br />
var p = res.query.pages[i];<br />
if (p.edittoken) quickRespond.token = p.edittoken;<br />
sc.content = p.revisions ? p.revisions[0]['*'] : '';<br />
sc.timestamp = p.revisions ? p.revisions[0].timestamp : '';<br />
}<br />
qr.checkSection();<br />
});<br />
};<br />
<br />
quickRespond.QR.prototype.checkSection = function () {<br />
this.pos = -1;<br />
for (i=0;i<this.signum;i++) this.pos = this.section.content.indexOf(this.sig,this.pos+1);<br />
if (this.pos == -1) {alert('Beitrag wurde verändert oder entfernt.');return;}<br />
if (this.text) this.trySave();<br />
};<br />
<br />
quickRespond.QR.prototype.save = function () {<br />
if (!this.area.value) {alert('Kein Text eingegeben.');return;}<br />
this.savelink.progress('Speichere...');<br />
this.text = this.area.value;<br />
this.comment = this.commentinput.value;<br />
if (!this.comment) {//<nowiki><br />
var stripped = this.text.match(/^[\\:\*#;]*((.|\n)*)/m)[1].replace(/\n/g,' ').replace(/~~~~/g,'');//</nowiki><br />
this.comment = stripped.length < 50 ? stripped : 'aw';<br />
}<br />
this.comment = '/* ' + this.section.heading + ' */ ' + this.comment;<br />
if (this.section.content) this.trySave();<br />
};<br />
<br />
quickRespond.QR.prototype.preview = function () {<br />
var qr = this;<br />
var l = this.area.value.match(/^\\*/)[0].length;<br />
var text = this.area.value.substr(l);<br />
quickRespond.callApi('action=parse&prop=text&title=' + qr.section.page + '&text=' + encodeURIComponent(text),'',function (res) {<br />
if (!res || !res.parse || !res.parse.text) {alert('Fehler beim Erstellen der Vorschau, bitte erneut versuchen.');return;}<br />
if (!qr.previewbox) {<br />
qr.previewbox = document.createElement('div');<br />
qr.previewbox.className = 'quickrespondpreview';<br />
qr.editform.insertBefore(qr.previewbox,qr.area);<br />
}<br />
qr.previewbox.innerHTML = res.parse.text['*'] || '';<br />
qr.area.focus();<br />
});<br />
};<br />
<br />
quickRespond.QR.prototype.transformed = function () {<br />
var backsl = this.text.match(/^\\*/)[0].length;<br />
if (backsl == 1)<br />
var prefix = '';<br />
else {<br />
var linestart = this.section.content.lastIndexOf('\n',this.pos) + 1;<br />
var colons = this.section.content.substring(linestart,this.pos).match(/^[:\*#]*/)[0] + ':';<br />
var prefix = colons.substr(backsl ? backsl - 1 : 0);<br />
}<br />
var text = prefix + this.text.substr(backsl).replace(/\n([^\n])/g,'\n' + prefix + '$1');//<nowiki><br />
if (text.indexOf('~~~~') == -1) text += window.usersignature || '-- ~~~~';//</nowiki><br />
if (text[text.length-1] != '\n') text += '\n';<br />
return text;<br />
}<br />
<br />
quickRespond.QR.prototype.insertresponse = function (text) {<br />
var c = this.section.content;<br />
var firstprefix = text.match(/^[:\*#]*/)[0].length;<br />
var ins = c.indexOf('\n',this.pos) + 1;<br />
while (ins>0 && (c[ins] == '\n' || c.substr(ins).match(/^[:\*#]*/)[0].length >= firstprefix))<br />
ins = c.indexOf('\n',ins) + 1;<br />
if (ins == 0) ins = c.length;<br />
if (c[ins-1] != '\n') text = '\n' + text;<br />
return c.substr(0,ins) + text + c.substring(ins,c.length);<br />
}<br />
<br />
quickRespond.QR.prototype.trySave = function () {<br />
var qr = this;<br />
var text = qr.transformed();<br />
var newtext = qr.insertresponse(text);<br />
var query = 'action=edit&nocreate&title=' + qr.section.page + '&section=' + qr.section.num + '&token='<br />
+ encodeURIComponent(quickRespond.token) + '&summary=' + encodeURIComponent(qr.comment)<br />
+ '&basetimestamp=' + encodeURIComponent(qr.section.timestamp);<br />
quickRespond.callApi(query,'text=' + encodeURIComponent(newtext),function (res) {<br />
if (res && res.edit && res.edit.result == 'Success') {<br />
qr.makeSuccessMsg(res.edit.oldrevid,res.edit.newrevid,text);<br />
} else if (res && res.error){<br />
if (res.error.code == 'editconflict') {<br />
qr.savelink.progress('BK auflösen...');<br />
qr.section.fetchContent(qr,true);<br />
} else {<br />
alert('Fehler beim Bearbeiten: '+res.error.info);<br />
qr.savelink.restore();<br />
}<br />
} else {<br />
alert('Fehler beim Bearbeiten, bitte erneut versuchen.');<br />
qr.savelink.restore();<br />
}<br />
});<br />
};<br />
<br />
//UI functions<br />
quickRespond.Link.prototype.appendTo = function (node) {<br />
node.appendChild(this.span);<br />
};<br />
quickRespond.Link.prototype.progress = function (text) {<br />
this.span.replaceChild(document.createTextNode(text),this.span.childNodes[1]);<br />
};<br />
quickRespond.Link.prototype.restore = function () {<br />
this.span.replaceChild(this.link,this.span.childNodes[1]);<br />
};<br />
<br />
quickRespond.QR.prototype.makeEditlink = function (node) {<br />
var parent = node.parentNode;<br />
var nextcont = node.nextSibling;<br />
while (nextcont && nextcont.nodeName != 'DL' && nextcont.nodeName != 'P') {<br />
if (nextcont.className == 'quickrespondlink') return;<br />
nextcont = nextcont.nextSibling;<br />
}<br />
this.editlink = new quickRespond.Link('+','Antworten','toggle',this.num);<br />
parent.insertBefore(this.editlink.span,nextcont);<br />
}; <br />
<br />
quickRespond.QR.prototype.toggle = function () {<br />
var t = this.editlink.link.firstChild.nodeValue == '+';<br />
this.editlink.link.firstChild.nodeValue = t ? '--' : '+';<br />
if (this.editform)<br />
this.editform.style.display = t ? 'block' : 'none';<br />
else {<br />
this.makeEditForm();<br />
this.section.fetchContent(this,false);<br />
}<br />
};<br />
<br />
quickRespond.QR.prototype.makeEditForm = function () {<br />
var dl = document.createElement('dl');<br />
this.editform = document.createElement('dd');<br />
this.editform.className = 'quickrespondform';<br />
dl.appendChild(this.editform);<br />
this.area = document.createElement('textarea');<br />
this.savelink = new quickRespond.Link('Speichern','','save',this.num);<br />
this.previewlink = new quickRespond.Link('Vorschau','','preview',this.num);<br />
this.commentinput = document.createElement('input');<br />
this.commentinput.type = 'text';<br />
this.commentinput.size = 80;<br />
this.editform.appendChild(this.area);<br />
this.savelink.appendTo(this.editform);<br />
this.previewlink.appendTo(this.editform);<br />
this.editform.appendChild(this.commentinput);<br />
var parent = this.editlink.span.parentNode;<br />
if (parent.nodeName=='DD')<br />
parent.insertBefore(dl,this.editlink.span.nextSibling);<br />
else<br />
parent.parentNode.insertBefore(dl,parent.nextSibling);<br />
this.area.focus();<br />
};<br />
<br />
quickRespond.QR.prototype.makeSuccessMsg = function(oldid,newid,text) {<br />
var dd = document.createElement('dd');<br />
dd.className = 'quickrespondsuccess';<br />
dd.appendChild(document.createTextNode('Antwort wurde erfolgreich gespeichert. ('));<br />
var link = document.createElement('a');<br />
link.appendChild(document.createTextNode('Difflink'));<br />
link.href = wgArticlePath.replace(/\$1/g,'?diff=' + newid + '&oldid=' + oldid);<br />
dd.appendChild(link);<br />
dd.appendChild(document.createTextNode(')'));<br />
dd.appendChild(document.createElement('br'));<br />
var pre = document.createElement('pre');<br />
pre.appendChild(document.createTextNode(text));<br />
dd.appendChild(pre);<br />
this.toggle();<br />
this.editform.parentNode.replaceChild(dd,this.editform);<br />
delete this.editform;<br />
delete this.text;<br />
if (this.previewbox) delete this.previewbox;<br />
};<br />
<br />
<br />
if ((wgNamespaceNumber==4 || wgNamespaceNumber % 2 == 1) && wgAction == 'view') {<br />
addOnloadHook(function() {<br />
var content = document.getElementById('bodyContent')<br />
|| document.getElementById('mw_contentholder')<br />
|| document.getElementById('article');<br />
quickRespond.recAddQRlinks(content);<br />
});<br />
appendCSS('.quickrespondlink {font-size: x-small;}\n'<br />
+'.quickrespondpreview {border: 1px solid #bbbbbb;padding: 0.2em;}\n'<br />
+'.quickrespondform textarea {width: 99%}\n'<br />
+'.quickrespondsuccess {background-color: #ddffcc;padding: 0.2em;}');<br />
}</div>
P.Copp