בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,362
רעדאגירונגען
(אפדעיט) |
(אפדעיט) |
||
| שורה 54: | שורה 54: | ||
.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 | ||
.replace(/ {2,}/g, ' '); | .replace(/ {2,}/g, ' '); | ||
} | } | ||
function getWikiLink() { | function getWikiLink() { | ||
var result = '', | var result = '', | ||
oldid = | oldid = getParameterByName('oldid') || getParameterByName('diff'); | ||
if (window.location.host == 'yi.hamichlol.org.il' && oldid) { | if (window.location.host == 'yi.hamichlol.org.il' && oldid) { | ||
var oldComment = ''; | var oldComment = ''; | ||
oldComment = window.prompt("קעפּל פאַר די לינק. קען בלייבן ליידיג.", oldComment); | oldComment = window.prompt("קעפּל פאַר די לינק. קען בלייבן ליידיג.", oldComment); | ||
result = '{{הבדל בין גרסאות|' + | result = '{{הבדל בין גרסאות|' + getParameterByName('title') + '|' + oldid + '||' + (oldComment ? oldComment : 'הבדל בין גרסאות') + '}}'; | ||
} else { | } else { | ||
var nms = { | var nms = { | ||
| שורה 146: | שורה 140: | ||
{ attr: ["meta[property='og:title']", "content"] }, | { attr: ["meta[property='og:title']", "content"] }, | ||
{ elem: 'head>title', match: /(?:ynet\s*-?)?([^\-]*)/ }, | { elem: 'head>title', match: /(?:ynet\s*-?)?([^\-]*)/ }, | ||
{ telem: 'h1' } | { telem: 'h1' }, | ||
{ elem: 'font.leshonit' } | |||
], | ], | ||
[ | [ | ||
{ url: 1, match: /L-(.*?),/ }, | { url: 1, match: /L-(.*?),/ }, | ||
{ url: 1, match: /co\.il\/(.*)/ } | { url: 1, match: /co\.il\/(.*)/, remove: ['#autoplay'] } ], | ||
[ | [ | ||
{ elem: 'td:has(h1:first) .text12g:last', date: '.' }, | { elem: 'td:has(h1:first) .text12g:last', date: '.' }, | ||
| שורה 331: | שורה 325: | ||
{ telem: '.article-date-gregorian', date: '.' }, | { telem: '.article-date-gregorian', date: '.' }, | ||
{ telem: '.article-date-gregorian-date', date: '.' } | { telem: '.article-date-gregorian-date', date: '.' } | ||
] | ], | ||
{ url: 1, match: /.*(flashes).*/ } | |||
] | ] | ||
}, | }, | ||
| שורה 667: | שורה 662: | ||
{ telem: "h1" }, | { telem: "h1" }, | ||
[ | [ | ||
{ attr: ["body | { attr: ["body", "data-uid"] }, | ||
{ url: 'decodeURI', match: /idf\.il\/(.*)$/ } | { url: 'decodeURI', match: /idf\.il\/(.*)$/ } | ||
], [ | ], [ | ||
| שורה 751: | שורה 746: | ||
], | ], | ||
{ urlparam: 'pgnum', prefix: 'page=' } | { urlparam: 'pgnum', prefix: 'page=' } | ||
] | |||
}, | |||
{ | |||
hostname: "www.izkor.gov.il", | |||
params: [ | |||
{ str: 'יזכור' }, | |||
{ url: 1, match: /gov\.il\/(.*)/, func: function (val) { return val.replace(/%20/, '%2520'); } }, | |||
{ url: 1, match: /gov\.il\/(.*?)\// } | |||
] | ] | ||
}, | }, | ||
| שורה 1,089: | שורה 1,092: | ||
params: [ | params: [ | ||
{ str: 'אתר הגבורה' }, | { str: 'אתר הגבורה' }, | ||
{ attr: ['input[name=hdaid]', 'value'] }, | |||
{ attr: ['input[name=hdaid]', 'value'] } | { telem: 'h1' } | ||
] | ] | ||
}, | }, | ||
רעדאגירונגען