בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,708
רעדאגירונגען
(פעלט מער נישט אויס?) |
(אפדעיט) |
||
| (7 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן) | |||
| שורה 19: | שורה 19: | ||
year = (Number(year) <= 50 ? '20' : '19') + year; | year = (Number(year) <= 50 ? '20' : '19') + year; | ||
} | } | ||
return | return `${month} ${day}, ${year}`; | ||
} | } | ||
| שורה 45: | שורה 45: | ||
.replace(/=/g, "{{=}}") | .replace(/=/g, "{{=}}") | ||
.replace(/''/g, '"') | .replace(/''/g, '"') | ||
.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(/ {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: " | hostname: "news1.co.il", | ||
params: [ | params: [ | ||
{ str: 'NFC' }, | { str: 'NFC' }, | ||
| שורה 836: | שורה 839: | ||
}, | }, | ||
{ | { | ||
hostname: 'www.nli.org.il', hrefmatch: /newspapers\/bamahane/, // it's own thing and not part of the larger nli | hostname: 'www.nli.org.il', hrefmatch: /newspapers\/bamahane\//, // it's own thing and not part of the larger nli | ||
params: [ | params: [ | ||
{ str: 'במחנה' }, | { str: 'במחנה' }, | ||
| שורה 842: | שורה 845: | ||
{ str: '', func: function (str) { return window.prompt("כותרת הדף", str); } }, // $('.pageblockselected').attr('title') | { str: '', func: function (str) { return window.prompt("כותרת הדף", str); } }, // $('.pageblockselected').attr('title') | ||
{ url: 1, match: /newspapers\/bamahane\/(\d{4}\/\d{2}\/\d{2})\// }, | { url: 1, match: /newspapers\/bamahane\/(\d{4}\/\d{2}\/\d{2})\// }, | ||
{ url: 1, match: /page\/(\d+)/ } | |||
] | |||
}, | |||
{ | |||
hostname: 'www.nli.org.il', hrefmatch: /newspapers\/bamahanenahal\//, // it's own thing and not part of the larger nli | |||
params: [ | |||
{ str: 'במחנה נחל' }, | |||
{ str: '', func: function (str) { return window.prompt("שם מחבר", str!='N/A'?str:''); } }, | |||
{ str: '', func: function (str) { return window.prompt("כותרת הדף", str); } }, // $('.pageblockselected').attr('title') | |||
{ url: 1, match: /newspapers\/bamahanenahal\/(\d{4}\/\d{2}\/\d{2})\// }, | |||
{ url: 1, match: /page\/(\d+)/ } | { url: 1, match: /page\/(\d+)/ } | ||
] | ] | ||
| שורה 872: | שורה 885: | ||
'bustenai': 'עיתונות|bustenai', | 'bustenai': 'עיתונות|bustenai', | ||
'dav': 'דבר', | 'dav': 'דבר', | ||
'dertog': 'דער טאג (ניו יורק)', | |||
'dhy': 'דואר היום', | 'dhy': 'דואר היום', | ||
'diedeborah' :'עיתונות|diedeborah', | 'diedeborah' :'עיתונות|diedeborah', | ||
| שורה 895: | שורה 909: | ||
'hayal': 'לחייל', | 'hayal': 'לחייל', | ||
'hayomisr': 'עיתונות|hayomisr', | 'hayomisr': 'עיתונות|hayomisr', | ||
'hayomw': 'היום | 'hayomw': 'היום (ורשה)', | ||
'hazit': 'החזית', | 'hazit': 'החזית', | ||
'hbkr': 'הבקר', | 'hbkr': 'הבקר', | ||
| שורה 982: | שורה 996: | ||
{ url: 1, match: /\/(\d+)\/$/ } | { url: 1, match: /\/(\d+)\/$/ } | ||
], | ], | ||
{ | { attr: ['meta[property="article:published_time"]', 'content'], date: ['-', '210'] } | ||
] | ] | ||
}, | }, | ||
| שורה 1,161: | שורה 1,175: | ||
{ str: 'סרוגים' }, | { str: 'סרוגים' }, | ||
[ | [ | ||
{ ldjson: { key: 'author' } }, | |||
{ telem: '.post_author', match: /(.+?)\d/ }, | { telem: '.post_author', match: /(.+?)\d/ }, | ||
{ attr: ["meta[name='author']", "content"] } | { attr: ["meta[name='author']", "content"] } | ||
| שורה 1,167: | שורה 1,182: | ||
{ url: 1, match: /\.srugim\.co\.il\/(.*)$/ }, | { url: 1, match: /\.srugim\.co\.il\/(.*)$/ }, | ||
[ | [ | ||
{ ldjson: { key: 'datePublished' } }, | |||
{ attr: ["meta[property='article:published_time']", "content"], date:['-',[2,1,0]] }, | { attr: ["meta[property='article:published_time']", "content"], date:['-',[2,1,0]] }, | ||
{ telem: '.post_details', date: '.' } | { telem: '.post_details', date: '.' } | ||
| שורה 1,348: | שורה 1,364: | ||
], | ], | ||
[ | [ | ||
{ prefix:'קובץ=', attr: ["link[rel='themeData']", "href"], match: /(. | { prefix:'קובץ=', attr: ["link[rel='themeData']", "href"], match: /^([^.]+)\.files/ }, | ||
{ prefix:'קובץ=', url: 1, func: | { prefix:'קובץ=', url: 1, func: s => s.includes('NetVerdicts') && (f = getParameterByName('fileName')) && !f.includes('.') ? f : '', fullhref: true, removeifempty: true } | ||
], | ], | ||
{ prefix:'סוג=', var: 'all_text', match: /\(?([^\s]+)[\s]+\d+\/\d+/m}, | { prefix:'סוג=', var: 'all_text', match: /\(?([^\s]+)[\s]+\d+\/\d+/m}, | ||
| שורה 1,431: | שורה 1,447: | ||
{ url: 1, match: /il\/(.+?)\// }, | { url: 1, match: /il\/(.+?)\// }, | ||
{ telem: 'div.date > span' } | { telem: 'div.date > span' } | ||
] | ] | ||
}, | }, | ||
| שורה 1,463: | שורה 1,470: | ||
], | ], | ||
removeparam: { | removeparam: { | ||
'1': [ 'כתב אורח', /מאת:? / ] | '1': [ 'כתב אורח', /מאת:? /, 'מערכת Geektime' ] | ||
} | } | ||
}, | }, | ||
| שורה 1,615: | שורה 1,622: | ||
{ url: 1, match: /co\.il\/(\d+)/, dirty: true }, | { url: 1, match: /co\.il\/(\d+)/, dirty: true }, | ||
{ ldjson: { key: 'datePublished' } } | { ldjson: { key: 'datePublished' } } | ||
] | |||
}, | |||
{ | |||
hostname: "academia.edu", | |||
params: [ | |||
{ str: 'אקדמיה' }, | |||
{ ldjson: ["script[data-component-name='TopCard']", "work.authors.0.displayName"] }, | |||
{ attr: ["meta[property='og:title']", "content"] }, | |||
{ url: 1, match: /academia.edu\/(\d+)/ }, | |||
{ ldjson: ["script[data-component-name='TopCard']", "publicationName"] }, | |||
{ ldjson: ["script[data-component-name='TopCard']", "publicationYear"] } | |||
] | ] | ||
}, | }, | ||
| שורה 1,623: | שורה 1,641: | ||
{ telem: "h1.firstHeading" }, | { telem: "h1.firstHeading" }, | ||
{ telem: "h1.firstHeading", func: function(data) { var match = data.match(/ - [A-Za-z].*/); return match ? data.replace(match[0], '') : false; } } | { telem: "h1.firstHeading", func: function(data) { var match = data.match(/ - [A-Za-z].*/); return match ? data.replace(match[0], '') : false; } } | ||
] | ] | ||
}, | }, | ||
| שורה 1,692: | שורה 1,699: | ||
try { | try { | ||
var curParam = data[i].params[j][k], | var curParam = data[i].params[j][k], | ||
removed = false; | removed = false; | ||
params[j] = ''; | |||
if (typeof curParam.str != "undefined") { | if (typeof curParam.str != "undefined") { | ||
| שורה 1,864: | שורה 1,872: | ||
if (typeof curParam.shouldnt != "undefined" && typeof params[j] == "string" && params[j].match(curParam.shouldnt)) | if (typeof curParam.shouldnt != "undefined" && typeof params[j] == "string" && params[j].match(curParam.shouldnt)) | ||
params[j] = ''; | params[j] = ''; | ||
if (typeof curParam.combine != "undefined" && params[j]) { | |||
params[j-1] = params[j-1] + curParam.combine + params[j]; | |||
console.log('changed', j-1, params[j-1]) | |||
params[j] = 'removeifempty'; | |||
} | |||
if (typeof curParam.removeifempty != "undefined" && !params[j]) | if (typeof curParam.removeifempty != "undefined" && !params[j]) | ||
| שורה 1,968: | שורה 1,982: | ||
var general = { | var general = { | ||
'קעפל': ldTitle, | 'קעפל': ldTitle, | ||
' | 'אדרעס': location.href | ||
}; | }; | ||
if (ldSite) general['זייטל'] = | if (ldSite) general['זייטל'] = ldSite; | ||
if (ldAuthor) general['שרייבער'] = ldAuthor; | if (ldAuthor) general['שרייבער'] = ldAuthor; | ||
if (ldDate) general['דאטום'] = ldDate; | if (ldDate) general['דאטום'] = ldDate; | ||
if (isEnglish) general['שפראך'] = 'ענגליש'; | |||
return general; | return general; | ||
רעדאגירונגען