https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Benutzer%3ACodc%2Ffixlinks.js Benutzer:Codc/fixlinks.js - Versionsgeschichte 2025-05-12T16:42:01Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.44.0-wmf.28 https://de.wikipedia.org/w/index.php?title=Benutzer:Codc/fixlinks.js&diff=209055748&oldid=prev Ladsgroup: Maintenance: Replacing legacy global variable (phab:T72470) 2021-02-21T08:33:50Z <p>Maintenance: Replacing legacy global variable (<a href="https://phabricator.wikimedia.org/T72470" class="extiw" title="phab:T72470">phab:T72470</a>)</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 21. Februar 2021, 10:33 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 64:</td> <td colspan="2" class="diff-lineno">Zeile 64:</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 req = newRequest();</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 req = newRequest();</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 (req) {</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 (req) {</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 text = wgServer + wgScriptPath + '/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iutitle='+wgPageName;</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 text = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins> + <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScriptPath<ins style="font-weight: bold; text-decoration: none;">')</ins> + '/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iutitle='+wgPageName;</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> req.open("GET", text, false);</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> req.open("GET", text, false);</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> req.send("");</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> req.send("");</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 86:</td> <td colspan="2" class="diff-lineno">Zeile 86:</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') continue;</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') continue;</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 gettime = generate_flatime();</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 gettime = generate_flatime();</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 url = wgServer+wgScript+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(wgTitle)+"&amp;replacewith="+encodeURIComponent(replacewith)+"&amp;fixlinkstype="+encodeURIComponent(fixlinkstype)+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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 url = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins>+<ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScript<ins style="font-weight: bold; text-decoration: none;">')</ins>+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(wgTitle)+"&amp;replacewith="+encodeURIComponent(replacewith)+"&amp;fixlinkstype="+encodeURIComponent(fixlinkstype)+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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> url = encodeURI(url);</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> url = encodeURI(url);</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> window.open(url);</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> window.open(url);</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 113:</td> <td colspan="2" class="diff-lineno">Zeile 113:</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 req2 = newRequest();</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 req2 = newRequest();</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 (req2) {</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 (req2) {</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 text = wgServer + wgScriptPath + '/api.php?action=query&amp;format=xml&amp;list=backlinks&amp;bllimit=500&amp;blfilterredir=nonredirects&amp;blnamespace=0|4|6|10|12|14|100&amp;bltitle='+movefrom;</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 text = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins> + <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScriptPath<ins style="font-weight: bold; text-decoration: none;">')</ins> + '/api.php?action=query&amp;format=xml&amp;list=backlinks&amp;bllimit=500&amp;blfilterredir=nonredirects&amp;blnamespace=0|4|6|10|12|14|100&amp;bltitle='+movefrom;</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> req2.open("GET", text, false);</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> req2.open("GET", text, false);</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> req2.send("");</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> req2.send("");</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 121:</td> <td colspan="2" class="diff-lineno">Zeile 121:</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 req3 = newRequest();</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 req3 = newRequest();</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 (req3) {</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 (req3) {</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 text = wgServer + wgScriptPath + '/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iufilterredir=nonredirects&amp;iunamespace=0|4|6|10|12|14|100&amp;iutitle='+movefrom;</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 text = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins> + <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScriptPath<ins style="font-weight: bold; text-decoration: none;">')</ins> + '/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iufilterredir=nonredirects&amp;iunamespace=0|4|6|10|12|14|100&amp;iutitle='+movefrom;</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> req3.open("GET", text, false);</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> req3.open("GET", text, false);</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> req3.send("");</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> req3.send("");</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 129:</td> <td colspan="2" class="diff-lineno">Zeile 129:</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 req4 = newRequest();</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 req4 = newRequest();</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 (req4) {</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 (req4) {</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 text = wgServer + wgScriptPath + '/api.php?action=query&amp;format=xml&amp;list=embeddedin&amp;eilimit=500&amp;eifilterredir=nonredirects&amp;einamespace=0|4|6|10|12|14|100&amp;eititle='+movefrom;</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 text = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins> + <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScriptPath<ins style="font-weight: bold; text-decoration: none;">')</ins> + '/api.php?action=query&amp;format=xml&amp;list=embeddedin&amp;eilimit=500&amp;eifilterredir=nonredirects&amp;einamespace=0|4|6|10|12|14|100&amp;eititle='+movefrom;</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> req4.open("GET", text, false);</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> req4.open("GET", text, false);</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> req4.send("");</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> req4.send("");</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 149:</td> <td colspan="2" class="diff-lineno">Zeile 149:</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> getimage = getimage.replace(/\&amp;/g, '%26');</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> getimage = getimage.replace(/\&amp;/g, '%26');</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(testvar) {</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(testvar) {</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 url = wgServer+wgScript+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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 url = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins>+<ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScript<ins style="font-weight: bold; text-decoration: none;">')</ins>+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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> //url = encodeURI(url);</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> //url = encodeURI(url);</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> window.open(url);</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> window.open(url);</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 162:</td> <td colspan="2" class="diff-lineno">Zeile 162:</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') testvar = false;</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') testvar = false;</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(testvar) {</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(testvar) {</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 url = wgServer+wgScript+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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 url = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins>+<ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScript<ins style="font-weight: bold; text-decoration: none;">')</ins>+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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> url = encodeURI(url);</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> url = encodeURI(url);</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> window.open(url);</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> window.open(url);</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 175:</td> <td colspan="2" class="diff-lineno">Zeile 175:</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') testvar = false;</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(getimage=='Wikipedia:WikiProjekt SVG/Wunschliste') testvar = false;</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(testvar) {</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(testvar) {</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 url = wgServer+wgScript+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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 url = <ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgServer<ins style="font-weight: bold; text-decoration: none;">')</ins>+<ins style="font-weight: bold; text-decoration: none;">mw.config.get('</ins>wgScript<ins style="font-weight: bold; text-decoration: none;">')</ins>+"?title="+getimage+"&amp;action=edit&amp;replace="+encodeURIComponent(movefrom)+"&amp;replacewith="+encodeURIComponent(moveto)+"&amp;fixlinkstype="+fixlinkstype+"&amp;flauser="+encodeURIComponent(getuser)+"&amp;flatime="+encodeURIComponent(gettime);</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> url = encodeURI(url);</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> url = encodeURI(url);</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> window.open(url);</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> window.open(url);</div></td> </tr> </table> Ladsgroup https://de.wikipedia.org/w/index.php?title=Benutzer:Codc/fixlinks.js&diff=182341850&oldid=prev Codc: AZ: Die Seite wurde neu angelegt: function newRequest() { try { if (window.XMLHttpRequest) { return new XMLHttp… 2018-10-31T22:39:32Z <p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: function newRequest() { try { if (window.XMLHttpRequest) { return new XMLHttp…</p> <p><b>Neue Seite</b></p><div> function newRequest()<br /> {<br /> try {<br /> if (window.XMLHttpRequest) {<br /> return new XMLHttpRequest();<br /> } else {<br /> return new ActiveXObject(&quot;MSXML2.XMLHTTP&quot;);<br /> }<br /> } catch (e) {<br /> return false;<br /> }<br /> }<br /> <br /> // token functions<br /> function generate_flauser () {<br /> return encodeURIComponent(wgUserName);<br /> }<br /> <br /> function validate_flauser (flauser) {<br /> var retval = false;<br /> if (flauser == encodeURIComponent(encodeURIComponent(generate_flauser())) )<br /> retval = true;<br /> <br /> return retval;<br /> }<br /> <br /> function generate_flatime () {<br /> var arbitrary_datestamp = Date.UTC(2008,10,1,0,0,0,0); // 1.11.2008<br /> var current_date = new Date();<br /> var current_timestamp = current_date.getTime();<br /> <br /> return ( Math.floor((current_timestamp - arbitrary_datestamp) / 1000) );<br /> }<br /> <br /> function validate_flatime (flatime) {<br /> var retval = false;<br /> var timediff = generate_flatime() - flatime;<br /> <br /> if ((timediff &gt;= 0) &amp;&amp; (timediff &lt; 45))<br /> retval = true;<br /> <br /> return retval;<br /> }<br /> <br /> // get URL parameters (used for page type variables)<br /> var FLUrlParameters = new Array ();<br /> readparams();<br /> <br /> function readparams() {<br /> var asReadInUrlParameters;<br /> var asReadInUrlParameter;<br /> <br /> // Get URL parameters<br /> asReadInUrlParameters = location.search.substring(1, location.search.length).split(&quot;&amp;&quot;);<br /> for (i = 0; i &lt; asReadInUrlParameters.length; i++) {<br /> asReadInUrlParameter = asReadInUrlParameters[i].split(&quot;=&quot;);<br /> FLUrlParameters[decodeURIComponent(asReadInUrlParameter[0])] = asReadInUrlParameter[1];<br /> }<br /> }<br /> <br /> // Funktion zum Öffnen der Links<br /> function fixlinksimages() {<br /> if(confirm(&quot;Möchtest du mit dem Abarbeiten von NowCommons bzw. JetztSVG fortfahren? Zum Umbiegen von Links auf eine frei definierbare Seite gehe zuerst in die Linkliste. Zum Löschen von Verlinkungen klicke auf RemoveLinks.&quot;)){<br /> var req = newRequest();<br /> if (req) {<br /> var text = wgServer + wgScriptPath + &#039;/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iutitle=&#039;+wgPageName;<br /> req.open(&quot;GET&quot;, text, false);<br /> req.send(&quot;&quot;);<br /> <br /> var imageusage = req.responseXML.getElementsByTagName(&quot;iu&quot;);<br /> }<br /> for(i=0;i&lt;10;i++){<br /> if (!imageusage[i]) continue;<br /> var replacewith = document.getElementById(&#039;Vorlage_NowCommons&#039;);<br /> var fixlinkstype = &#039;nowcommons&#039;;<br /> if(!replacewith) {<br /> var replacewith = document.getElementById(&#039;Vorlage_JetztSVG&#039;);<br /> fixlinkstype = &#039;svg&#039;;<br /> }<br /> if(!replacewith) continue;<br /> replacewith = replacewith.getElementsByTagName(&#039;td&#039;)[1].getElementsByTagName(&#039;a&#039;)[0].getAttribute(&#039;title&#039;).replace(/\bcommons.File./,&#039;&#039;).replace(/\bDatei\:/,&#039;&#039;);<br /> var getuser = generate_flauser();<br /> var getimage = imageusage[i].getAttribute(&#039;title&#039;);<br /> if(getimage.search(/Kategorie\:Wikipedia\:Datei/) != -1) continue;<br /> if(getimage==&#039;Wikipedia:Grafikwerkstatt&#039;) continue;<br /> if(getimage==&#039;Wikipedia:WikiProjekt SVG/Wunschliste&#039;) continue;<br /> var gettime = generate_flatime();<br /> var url = wgServer+wgScript+&quot;?title=&quot;+getimage+&quot;&amp;action=edit&amp;replace=&quot;+encodeURIComponent(wgTitle)+&quot;&amp;replacewith=&quot;+encodeURIComponent(replacewith)+&quot;&amp;fixlinkstype=&quot;+encodeURIComponent(fixlinkstype)+&quot;&amp;flauser=&quot;+encodeURIComponent(getuser)+&quot;&amp;flatime=&quot;+encodeURIComponent(gettime);<br /> url = encodeURI(url);<br /> window.open(url);<br /> if(i==9 &amp;&amp; imageusage.length&gt;10) {<br /> document.getElementById(&#039;firstHeading&#039;).setAttribute(&#039;class&#039;, &#039;recentlyrestored&#039;);<br /> document.getElementById(&#039;firstHeading&#039;).setAttribute(&#039;style&#039;, &#039;text-decoration: blink; background-color:red;&#039;);<br /> document.getElementById(&#039;firstHeading&#039;).innerHTML = &#039;Es sind noch Einbindungen vorhanden! Skript noch einmal ausführen!&#039;;<br /> }<br /> }<br /> }<br /> }<br /> <br /> function fixlinkslinklist(gettype) {<br /> var counter = 0;<br /> var movefrom = wgPageName;<br /> if(wgCanonicalSpecialPageName == &quot;Whatlinkshere&quot;) movefrom = document.getElementById(&#039;contentSub&#039;).getElementsByTagName(&#039;a&#039;)[0].innerHTML; <br /> if (gettype == &#039;1&#039;) {<br /> var moveto = prompt(&#039;Wohin sollen die Links gefixt werden?&#039;);<br /> var startwith = prompt(&#039;Wie viele Links sollen übersprungen werden?&#039;, &#039;0&#039;);<br /> startwith = parseInt(startwith);<br /> } else {<br /> var moveto = &#039;DELETE&#039;;<br /> var startwith = 0;<br /> }<br /> if(moveto &amp;&amp; (moveto !== &#039;&#039;) &amp;&amp; (moveto !== movefrom)) {<br /> var req2 = newRequest();<br /> if (req2) {<br /> var text = wgServer + wgScriptPath + &#039;/api.php?action=query&amp;format=xml&amp;list=backlinks&amp;bllimit=500&amp;blfilterredir=nonredirects&amp;blnamespace=0|4|6|10|12|14|100&amp;bltitle=&#039;+movefrom;<br /> req2.open(&quot;GET&quot;, text, false);<br /> req2.send(&quot;&quot;);<br /> <br /> var linklist1 = req2.responseXML.getElementsByTagName(&quot;bl&quot;);<br /> }<br /> var req3 = newRequest();<br /> if (req3) {<br /> var text = wgServer + wgScriptPath + &#039;/api.php?action=query&amp;format=xml&amp;list=imageusage&amp;iulimit=500&amp;iufilterredir=nonredirects&amp;iunamespace=0|4|6|10|12|14|100&amp;iutitle=&#039;+movefrom;<br /> req3.open(&quot;GET&quot;, text, false);<br /> req3.send(&quot;&quot;);<br /> <br /> var linklist2 = req3.responseXML.getElementsByTagName(&quot;iu&quot;);<br /> }<br /> var req4 = newRequest();<br /> if (req4) {<br /> var text = wgServer + wgScriptPath + &#039;/api.php?action=query&amp;format=xml&amp;list=embeddedin&amp;eilimit=500&amp;eifilterredir=nonredirects&amp;einamespace=0|4|6|10|12|14|100&amp;eititle=&#039;+movefrom;<br /> req4.open(&quot;GET&quot;, text, false);<br /> req4.send(&quot;&quot;);<br /> <br /> var linklist3 = req4.responseXML.getElementsByTagName(&quot;ei&quot;);<br /> }<br /> if (gettype==&#039;1&#039;) { var fixlinkstype = &#039;linklist&#039;; } else { var fixlinkstype = &#039;deletelinks&#039;; }<br /> for(i=0;i&lt;10;i++){<br /> if(counter &lt; 10) {<br /> var getuser = generate_flauser();<br /> var gettime = generate_flatime();<br /> <br /> if (linklist1[i+startwith]) {<br /> var getimage = linklist1[i+startwith].getAttribute(&#039;title&#039;);<br /> var testvar = true;<br /> if(getimage.search(/Kategorie\:Wikipedia\:Datei/) != -1) testvar = false;<br /> if(getimage==&#039;Wikipedia:Grafikwerkstatt&#039;) testvar = false;<br /> if(getimage==&#039;Wikipedia:WikiProjekt SVG/Wunschliste&#039;) testvar = false;<br /> getimage = getimage.replace(/\&amp;/g, &#039;%26&#039;);<br /> if(testvar) {<br /> var url = wgServer+wgScript+&quot;?title=&quot;+getimage+&quot;&amp;action=edit&amp;replace=&quot;+encodeURIComponent(movefrom)+&quot;&amp;replacewith=&quot;+encodeURIComponent(moveto)+&quot;&amp;fixlinkstype=&quot;+fixlinkstype+&quot;&amp;flauser=&quot;+encodeURIComponent(getuser)+&quot;&amp;flatime=&quot;+encodeURIComponent(gettime);<br /> //url = encodeURI(url);<br /> window.open(url);<br /> counter++;<br /> }<br /> }<br /> if (linklist2[i]) {<br /> var getimage = linklist2[i].getAttribute(&#039;title&#039;);<br /> var testvar = true;<br /> if(getimage.search(/Kategorie\:Wikipedia\:Datei/) != -1) testvar = false;<br /> if(getimage==&#039;Wikipedia:Grafikwerkstatt&#039;) testvar = false;<br /> if(getimage==&#039;Wikipedia:WikiProjekt SVG/Wunschliste&#039;) testvar = false;<br /> if(testvar) {<br /> var url = wgServer+wgScript+&quot;?title=&quot;+getimage+&quot;&amp;action=edit&amp;replace=&quot;+encodeURIComponent(movefrom)+&quot;&amp;replacewith=&quot;+encodeURIComponent(moveto)+&quot;&amp;fixlinkstype=&quot;+fixlinkstype+&quot;&amp;flauser=&quot;+encodeURIComponent(getuser)+&quot;&amp;flatime=&quot;+encodeURIComponent(gettime);<br /> url = encodeURI(url);<br /> window.open(url);<br /> counter++;<br /> }<br /> }<br /> if (linklist3[i] &amp;&amp; !linklist) {<br /> var getimage = linklist3[i].getAttribute(&#039;title&#039;);<br /> var testvar = true;<br /> if(getimage.search(/Kategorie\:Wikipedia\:Datei/) != -1) testvar = false;<br /> if(getimage==&#039;Wikipedia:Grafikwerkstatt&#039;) testvar = false;<br /> if(getimage==&#039;Wikipedia:WikiProjekt SVG/Wunschliste&#039;) testvar = false;<br /> if(testvar) {<br /> var url = wgServer+wgScript+&quot;?title=&quot;+getimage+&quot;&amp;action=edit&amp;replace=&quot;+encodeURIComponent(movefrom)+&quot;&amp;replacewith=&quot;+encodeURIComponent(moveto)+&quot;&amp;fixlinkstype=&quot;+fixlinkstype+&quot;&amp;flauser=&quot;+encodeURIComponent(getuser)+&quot;&amp;flatime=&quot;+encodeURIComponent(gettime);<br /> url = encodeURI(url);<br /> window.open(url);<br /> counter++;<br /> }<br /> }<br /> <br /> } else {<br /> document.getElementById(&#039;firstHeading&#039;).setAttribute(&#039;class&#039;, &#039;recentlyrestored&#039;);<br /> document.getElementById(&#039;firstHeading&#039;).setAttribute(&#039;style&#039;, &#039;text-decoration: blink; background-color:red;&#039;);<br /> document.getElementById(&#039;firstHeading&#039;).innerHTML = &#039;Es sind noch Einbindungen vorhanden! Skript noch einmal ausführen!&#039;;<br /> }<br /> }<br /> }<br /> //}<br /> }<br /> <br /> // Funktion zum Ändern der Artikelinhalte<br /> function fixlinks(){<br /> if (validate_flauser(FLUrlParameters[&quot;flauser&quot;])) {<br /> if (validate_flatime(FLUrlParameters[&quot;flatime&quot;])) {<br /> var replacewith = decodeURIComponent(decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replacewith&quot;])));<br /> var replacer = decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;])).replace(/[\s_\.]/g,&#039;.&#039;).replace(/\(/,&#039;\\(&#039;).replace(/\)/,&#039;\\)&#039;);<br /> if (FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;linklist&#039; || FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;deletelinks&#039;) {<br /> replacer = &#039;\\[\\[&#039;+replacer;<br /> replacer = replacer.replace(/\\\[\\\[(Bild:|Image:|Datei:|File:)/g, &#039;&#039;);<br /> }<br /> if (FLUrlParameters[&quot;fixlinkstype&quot;] != &#039;deletelinks&#039;) replacer = new RegExp(replacer, &#039;gi&#039;);<br /> //alert(replacer);<br /> //alert(replacewith);<br /> if(FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;nowcommons&#039;){<br /> document.editform.wpSummary.value = &quot;Die Datei [[Datei:&quot;+decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;]))+&quot;]] ist nun auf Commons unter [[commons:File:&quot;+decodeURIComponent(replacewith)+&quot;]] zu finden. ([[Benutzer:DerHexer/fixlinks.js|fixlinks.js]])&quot;;<br /> } else if (FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;svg&#039;) {<br /> document.editform.wpSummary.value = &quot;Die Datei [[Datei:&quot;+decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;]))+&quot;]] ist nun als [[Scalable Vector Graphics|SVG]] unter [[Datei:&quot;+decodeURIComponent(replacewith)+&quot;]] zu finden. ([[Benutzer:DerHexer/fixlinks.js|fixlinks.js]])&quot;;<br /> } else if (FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;linklist&#039;) {<br /> document.editform.wpSummary.value = &quot;[[Benutzer:DerHexer/fixlinks.js|Linkfix]] ([[&quot;+decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;])).replace(/\[\[/,&#039;&#039;)+&quot;]] → [[&quot;+decodeURIComponent(replacewith)+&quot;]])&quot;;<br /> replacewith = &#039;[[&#039;+replacewith;<br /> replacewith = replacewith.replace(/\[\[(Bild:|Image:|Datei:|File:)/, &#039;&#039;);<br /> } else if (FLUrlParameters[&quot;fixlinkstype&quot;] == &#039;deletelinks&#039;) {<br /> document.editform.wpSummary.value = &quot;Links von [[&quot;+decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;])).replace(/\[\[/,&#039;&#039;)+&quot;]] wurden gelöscht. ([[Benutzer:DerHexer/fixlinks.js|fixlinks.js]])&quot;;<br /> replacer = &#039;\(\\[\\[\)\?\(Bild:|Image:|Datei:|File:|bild:|image:|datei:|file:\)\?&#039; + replacer + &#039;\.\*\(\\]\\]\)\?&#039;;<br /> //alert(replacer);<br /> replacer = new RegExp(replacer, &#039;i&#039;);<br /> //alert(replacer);<br /> } else {<br /> document.editform.wpSummary.value = &quot;Die Datei [[Datei:&quot;+decodeURIComponent(decodeURIComponent(FLUrlParameters[&quot;replace&quot;]))+&quot;]] wurde durch die Datei [[Datei:&quot;+decodeURIComponent(replacewith)+&quot;]] ersetzt. ([[Benutzer:DerHexer/fixlinks.js|fixlinks.js]])&quot;;<br /> }<br /> document.editform.wpMinoredit.checked=true;<br /> if (FLUrlParameters[&quot;fixlinkstype&quot;] != &#039;deletelinks&#039;) { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(replacer, replacewith); } else { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(replacer, &#039;&#039;); }<br /> document.editform.wpDiff.click();<br /> //document.editform.wpSave.click();<br /> //window.setTimeout(function() { window.close(); }, 1000);<br /> } else {<br /> alert(&quot;Token zur automatischen Speicherung ist abgelaufen.&quot;);<br /> }<br /> }<br /> }<br /> if(FLUrlParameters[&quot;replace&quot;] &amp;&amp; FLUrlParameters[&quot;replacewith&quot;]) $(fixlinks);<br /> <br /> if(wgNamespaceNumber==6) <br /> {<br /> $(function() <br /> { <br /> mediaWiki.util.addPortletLink(&#039;p-tb&#039;, &quot;javascript:fixlinksimages();&quot;, &quot;FixLinks&quot;, &#039;t-fixlinks&#039;, &#039;fix Links&#039;, &#039;&#039;, document.getElementById(&#039;t-whatlinkshere&#039;));<br /> });<br /> }<br /> if(wgCanonicalSpecialPageName == &quot;Whatlinkshere&quot;)<br /> {<br /> $(function() <br /> { <br /> mediaWiki.util.addPortletLink(&#039;p-tb&#039;, &quot;javascript:fixlinkslinklist(1);&quot;, &quot;FixLinks&quot;, &#039;t-fixlinks&#039;, &#039;fix Links&#039;, &#039;&#039;, document.getElementById(&#039;t-upload&#039;));<br /> });<br /> }<br /> if(wgNamespaceNumber==6 || wgCanonicalSpecialPageName == &quot;Whatlinkshere&quot;) <br /> {<br /> $(function() <br /> { <br /> mediaWiki.util.addPortletLink(&#039;p-tb&#039;, &quot;javascript:fixlinkslinklist(2);&quot;, &quot;RemoveLinks&quot;, &#039;t-removelinks&#039;, &#039;entferne Links&#039;, &#039;&#039;, document.getElementById(&#039;t-whatlinkshere&#039;));<br /> });<br /> }</div> Codc