MediaWiki:Gadget-OCR.js
Beaachte: Maage di cache faan dan browser leesag, wan dü a feranrangen sä wel.
- Firefox / Safari: Hual Shift bi't aktualisiarin, of trak Strg an F5 of Strg an R (⌘an R üüb en Mac)
- Google Chrome: Trak Strg an Shift an R (⌘an Shift an R üüb en Mac)
- Internet Explorer/Edge: Hual Strg bi't aktualisiarin, of trak Strg an F5
- Opera: Extras - Internetspuren löschen - Individuelle Auswahl - Den kompletten Cache löschen
/*******************************************************************************************/
/* <pre><nowiki> MediaWiki:OCR.js */
/*-----------------------------------------------------------------------------------------*/
/* adds ocr button to proofread pages */
/* Author : ThomasV,Xarax */
/*******************************************************************************************/
function addOCR( form, text )
{
form.elements["wpSummary"].value = "/*" + text + "*/";
form.elements["wpTextbox1"].value = "{"+"{"+"OcrRequest"+"}"+"}";
}
function addOCRButton()
{
if ( (mw.config.get('wgNamespaceNumber') == 102) && (wgArticleId == 0) ) {
var saveButton = document.getElementById("wpSave");
if (saveButton)
{
newButtons = '<input id="wpOcrAntiqua" name="ocra" type="submit" tabindex="5" '
newButtons += 'accesskey="o" value="OCRA" title="OCRA" onclick="addOCR(this.form, this.value);"/>'
newButtons += '<input id="wpOcrFraktur" name="ocrf" type="submit" tabindex="5" '
newButtons += 'accesskey="o" value="OCRF" title="OCRF" onclick="addOCR(this.form, this.value);"/>'
saveButton.parentNode.innerHTML = newButtons + saveButton.parentNode.innerHTML;
}
}
}
$(addOCRButton);
/*******************************************************************************************/
/* </nowiki></pre><noinclude>[[Kategorie:Wikisource:Javascript]]</noinclude> */
/*******************************************************************************************/