אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Common.js/externalsmaker.js"

קיין רעדאגירונג באמערקונג
(אפדעיט)
אין תקציר עריכה
שורה 45: שורה 45:
.replace(/=/g, "{{=}}")
.replace(/=/g, "{{=}}")
.replace(/''/g, '"')
.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(/((?<!עיתונות)\|\|?)/gm, function (x) { return "{" + "{" + x.replace(/\|/g, "!") + "}}"; })
.replace(/[\u200B\u200E\u200F\u2028\u202A\u202B\u202C\u202D\u202E]/g, '') // remove invisible Unicode control characters
.replace(/ {2,}/g, ' ')
.replace(/ {2,}/g, ' ')
.replace('#google_vignette', '');
.replace('#google_vignette', '');
שורה 136: שורה 137:
{ url: 1, match: /co\.il\/((?:ency|home|headlines)\/.*?html?)/ },
{ url: 1, match: /co\.il\/((?:ency|home|headlines)\/.*?html?)/ },
{ url: 1, match: /L-(.*?),/ },
{ url: 1, match: /L-(.*?),/ },
{ url: 1, match: /co\.il\/(.*)/ } ],
{ url: 1, match: /co\.il\/(.*)/ }
],
[
[
{ url: 1, match: /co\.il\/((?:ency)\/.*?html?)/, prefix: "תאריך=", func: function(s) { return s ? 'ללא' : ''; }},
{ url: 1, match: /co\.il\/((?:ency)\/.*?html?)/, prefix: "תאריך=", func: function(s) { return s ? 'ללא' : ''; }},
שורה 470: שורה 472:
{ telem: "h1:first" },
{ telem: "h1:first" },
{ url:1, match: /makorrishon\.co\.il\/(.*?)\/?$/ },
{ url:1, match: /makorrishon\.co\.il\/(.*?)\/?$/ },
{ ldjson: { key:'datePublished'}, date:['-',[2,1,0]] }
]
]
},
},
שורה 603: שורה 606:
},
},
{
{
hostname: "www.news1.co.il",
hostname: "news1.co.il",
params: [
params: [
{ str: 'NFC' },
{ str: 'NFC' },
שורה 896: שורה 899:
'hayal': 'לחייל',
'hayal': 'לחייל',
'hayomisr': 'עיתונות|hayomisr',
'hayomisr': 'עיתונות|hayomisr',
'hayomw': 'היום וורשה',
'hayomw': 'היום (ורשה)',
'hazit': 'החזית',
'hazit': 'החזית',
'hbkr': 'הבקר',
'hbkr': 'הבקר',
שורה 983: שורה 986:
{ url: 1, match: /\/(\d+)\/$/ }
{ url: 1, match: /\/(\d+)\/$/ }
],
],
{ telem: "span.date", match: /(\d+ ב[א-ת]+ \d+)/ }
{ attr: ['meta[property="article:published_time"]', 'content'], date: ['-', '210'] }
]
]
},
},
שורה 1,616: שורה 1,619:
{ url: 1, match: /co\.il\/(\d+)/, dirty: true },
{ url: 1, match: /co\.il\/(\d+)/, dirty: true },
{ ldjson: { key: 'datePublished' } }
{ ldjson: { key: 'datePublished' } }
]
},
{
hostname: "wikirefua.org.il",
params: [
{ str: 'ויקירפואה' },
{ telem: "h1.firstHeading" },
{ telem: "h1.firstHeading", func: function(data) { var match = data.match(/ - [A-Za-z].*/); return match ? data.replace(match[0], '') : false; } }
]
]
},
},
שורה 1,635: שורה 1,630:
{ attr: ["meta[name='citation_journal_title']", "content"] },
{ attr: ["meta[name='citation_journal_title']", "content"] },
{ attr: ["meta[name='citation_publication_date']", "content"] }
{ attr: ["meta[name='citation_publication_date']", "content"] }
]
},
{
hostname: "wikirefua.org.il",
params: [
{ str: 'ויקירפואה' },
{ telem: "h1.firstHeading" },
{ telem: "h1.firstHeading", func: function(data) { var match = data.match(/ - [A-Za-z].*/); return match ? data.replace(match[0], '') : false; } }
]
]
},
},
שורה 1,693: שורה 1,696:
try {
try {
var curParam = data[i].params[j][k],
var curParam = data[i].params[j][k],
removed = false; params[j] = '';
removed = false;
params[j] = '';


if (typeof curParam.str != "undefined") {
if (typeof curParam.str != "undefined") {