בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,362
רעדאגירונגען
(גיידסטאר, אפדעיט) |
(אפדעיט, אראפגענומען onlife) |
||
| שורה 49: | שורה 49: | ||
.replace(/(\|\|?)/gm, function (x) { return "{{" + x.replace(/\|/g, "!") + "}}"; }) | .replace(/(\|\|?)/gm, function (x) { return "{{" + x.replace(/\|/g, "!") + "}}"; }) | ||
.replace(/[\u200B\u200E\u200F\u2028\u202A\u202B\u202C\u202D\u202E]/g, ''); // remove invisible Unicode control characters | .replace(/[\u200B\u200E\u200F\u2028\u202A\u202B\u202C\u202D\u202E]/g, ''); // remove invisible Unicode control characters | ||
} | |||
function getWikiLink() { | |||
var nms = { | |||
'he.wikipedia.org': '', | |||
'he.wikibooks.org': 'b:', | |||
'he.wikinews.org': 'n:', | |||
'he.wikiquote.org': 'q:', | |||
'he.wikisource.org': 's:', | |||
'he.wiktionary.org': 'wikt:' | |||
}, | |||
wikinamespace = document.querySelector('.mw-page-title-namespace'), | |||
wikiname = document.querySelector('.mw-page-title-main'), | |||
wikiarticle = wikiname ? wikinamespace ? wikinamespace.textContent + ':' + wikiname.textContent : wikiname.textContent : null, | |||
wikitype = nms[window.location.host]; | |||
if (wikitype != undefined && wikiname) { | |||
var result = '[[' + wikitype + wikiarticle + (wikitype ? '|' + wikiname.textContent : '') + ']]'; | |||
if (prompt("דרוקן OK וועט קאפּירן דעם מוסטער:", result) != null) { | |||
$('<input>').val(result).appendTo('body').select();document.execCommand('copy'); | |||
} | |||
return true; | |||
} | |||
return false; | |||
} | |||
if (window.location.host.indexOf('he.wik') == 0) { | |||
if (getWikiLink()) { | |||
return true; | |||
} | |||
} | } | ||
| שורה 127: | שורה 157: | ||
{ str: 'וואלה!' }, | { str: 'וואלה!' }, | ||
[ | [ | ||
{ telem: 'div.writers-names' }, | |||
{ telem: 'div.author' }, | |||
{ telem: '.info .author:first, .provider', match: /^([^\|]*)/ }, | { telem: '.info .author:first, .provider', match: /^([^\|]*)/ }, | ||
{ telem: 'div.wp-0-b:first span:first', match: /מאת:(.*),/ }, | { telem: 'div.wp-0-b:first span:first', match: /מאת:(.*),/ }, | ||
| שורה 962: | שורה 994: | ||
{ url: 1, match: /co\.il\/(.*)\// }, | { url: 1, match: /co\.il\/(.*)\// }, | ||
{ telem: '.entry-date', date: '.' } | { telem: '.entry-date', date: '.' } | ||
] | ] | ||
}, | }, | ||
רעדאגירונגען