מייבאים כמותיים, בדוקי עריכות אוטומטית, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, מייבאים, מעדכנים, אספקלריה רעדאקטארן
3,951
רעדאגירונגען
אין תקציר עריכה צייכן: צוריקגעשטעלט |
צייכן: צוריקדריי |
||
| שורה 3: | שורה 3: | ||
window.$ = window.jQuery; | window.$ = window.jQuery; | ||
function dateFormat(dateArr) { | |||
function dateFormat(dateArr | |||
if (dateArr instanceof Array) { | if (dateArr instanceof Array) { | ||
var | var m = ["יאנואר", "פעברואר", "מערץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "סעפטעמבער", "אקטאבער", "נאוועמבער", "דעצעמבער"]; | ||
if (dateArr.length != 3) | if (dateArr.length != 3) | ||
return ''; | return ''; | ||
dateArr[1] = m[Number(dateArr[1]) - 1]; | |||
if (Number(dateArr[2]) <= 50) | |||
dateArr[2] = 20 + dateArr[2]; | |||
else if (Number(dateArr[2]) >= 50 && Number(dateArr[2]) < 100) | |||
dateArr[2] = 19 + dateArr[2]; | |||
if (Number( | |||
else if (Number( | |||
if (dateArr[0].charAt(0) == '0') | |||
if ( | dateArr[0] = dateArr[0].substring(1, dateArr[0].length); | ||
dateArr = dateArr[1] + " " + dateArr[0] + ", " + dateArr[2]; | |||
} | } | ||
return jQuery.trim(dateArr); | return jQuery.trim(dateArr); | ||
| שורה 629: | שורה 604: | ||
{ str: '' }, | { str: '' }, | ||
{ telem: "#fullRecordView th:contains(בתוך):first + td", match: /\((.*?)\)/, func: function (yh) { return yh.substring(0, yh.length - 1) + '"' + yh.substr(yh.length - 1); } }, | { telem: "#fullRecordView th:contains(בתוך):first + td", match: /\((.*?)\)/, func: function (yh) { return yh.substring(0, yh.length - 1) + '"' + yh.substr(yh.length - 1); } }, | ||
{ telem: "#fullRecordView th:contains(בתוך):first + td", match: /(\d+\-\d+)/ }, | |||
{ telem: "#fullRecordView th:contains(מס' מערכת):first + td", prefix: "רמבי=" } | { telem: "#fullRecordView th:contains(מס' מערכת):first + td", prefix: "רמבי=" } | ||
] | ] | ||
| שורה 729: | שורה 705: | ||
{ | { | ||
attr: ['meta[property="article:published_time"]', 'content'], | attr: ['meta[property="article:published_time"]', 'content'], | ||
func: function(s) { return dateFormat(new Date(s).toLocaleDateString('he').split('.') | func: function(s) { return dateFormat(new Date(s).toLocaleDateString('he').split('.')); }, // just for after 22:00 articles as https://www.hayadan.org.il/colluns-astronauts-are-not-celebs-2307093 | ||
} | } | ||
] | ] | ||
| שורה 1,043: | שורה 1,019: | ||
params: [ | params: [ | ||
{ str: 'חרדים10' }, | { str: 'חרדים10' }, | ||
{ attr: ['meta[name="author"]', | { attr: ['meta[name="author"]', 'content'], remove: ['חרדים 10'] }, | ||
{ attr: ['meta[property="og:title"]', | { attr: ['meta[property="og:title"]', 'content'] }, | ||
{ url: 1, match: /news\/(\d+)/ }, | { url: 1, match: /news\/(\d+)/ }, | ||
{ attr: ['meta[property="article:published_time"]', | { attr: ['meta[property="article:published_time"]', 'content'], date: ['-', '210'] } | ||
] | ] | ||
}, | }, | ||
| שורה 1,604: | שורה 1,580: | ||
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") { | ||
| שורה 1,746: | שורה 1,705: | ||
} | } | ||
} | } | ||
if (typeof curParam.date != "undefined") { | if (typeof curParam.date != "undefined") { | ||
if (!(curParam.date instanceof Array)) | if (!(curParam.date instanceof Array)) | ||
| שורה 1,757: | שורה 1,713: | ||
params[j] = params[j].split(curParam.date[0]); | params[j] = params[j].split(curParam.date[0]); | ||
params[j] = [params[j][curParam.date[1][0]], params[j][curParam.date[1][1]], params[j][curParam.date[1][2]]]; | params[j] = [params[j][curParam.date[1][0]], params[j][curParam.date[1][1]], params[j][curParam.date[1][2]]]; | ||
params[j] = dateFormat(params[j] | params[j] = dateFormat(params[j]); | ||
} | } | ||
} | } | ||
| שורה 1,766: | שורה 1,722: | ||
mm = (today.getMonth() + 1).toString(), | mm = (today.getMonth() + 1).toString(), | ||
yy = today.getFullYear().toString().slice(-2); | yy = today.getFullYear().toString().slice(-2); | ||
params[j] = dateFormat([dd, mm, yy] | params[j] = dateFormat([dd, mm, yy]); | ||
} | } | ||
} | } | ||
| שורה 1,886: | שורה 1,842: | ||
'אדרעס': location.href, | 'אדרעס': location.href, | ||
'זייטל': (ldojson.publisher||ldojson_website[0]).name, | 'זייטל': (ldojson.publisher||ldojson_website[0]).name, | ||
'דאטום': date != "Invalid Date" ? dateFormat([''+date.getDate(), ''+(date.getMonth()+1), ''+date.getFullYear()] | 'דאטום': date != "Invalid Date" ? dateFormat([''+date.getDate(), ''+(date.getMonth()+1), ''+date.getFullYear()]) : '' | ||
}; | }; | ||
console.log('data', general); | console.log('data', general); | ||
רעדאגירונגען