אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-quickLinker.js"

אפשר דאך..
(אנהייב פון צופאסונג: רוי)
צייכן: צוריקגעשטעלט
(אפשר דאך..)
צייכנס: מאנועל צוריקשטעל צוריקגעשטעלט
שורה 4: שורה 4:
Author: [[:he:User:ערן]]
Author: [[:he:User:ערן]]
*/
*/
if (mw.config.get('wgContentNamespaces').includes(mw.config.get('wgNamespaceNumber'))) $(function(){
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) $(function(){
var titleNoBrackets = /(.+?)( \(|$)/.exec(mw.config.get('wgTitle')), allowedSuffix, allowedPrefix;
var titleNoBrackets = /(.+?)( \(|$)/.exec(mw.config.get('wgTitle')), allowedSuffix, allowedPrefix;
if (titleNoBrackets) titleNoBrackets = titleNoBrackets[1];
if (titleNoBrackets) titleNoBrackets = titleNoBrackets[1];
שורה 130: שורה 130:
case 'safeSearch':
case 'safeSearch':
return new OO.ui.Process( function () {
return new OO.ui.Process( function () {
  dialog.close();
  dialog.close()
  protectedSearchQuery(true);
  protectedSearchQuery(true);
}, this );
}, this );
שורה 199: שורה 199:
this.content.$element.html('<h1><a href="/'+encodeURI(page.title)+'" target="_blank">'+page.title+'</a></h1><p>'+contextPre+contextInnerOld+'<b>'+contextInner+'</b>'+contextPost+'</p>');
this.content.$element.html('<h1><a href="/'+encodeURI(page.title)+'" target="_blank">'+page.title+'</a></h1><p>'+contextPre+contextInnerOld+'<b>'+contextInner+'</b>'+contextPost+'</p>');
this.curPage = page.title;
this.curPage = page.title;
this.text = pagecontent.replace(context, newContext);
this.text = pagecontent.replace(context, newContext)
this.timestamp = page.revisions[0].timestamp;
this.timestamp = page.revisions[0].timestamp;
};
}


QuickEditorDialog.prototype.nextPage = function ( ) {
QuickEditorDialog.prototype.nextPage = function ( ) {