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

קפיצה לניווט קפיצה לחיפוש
אפדעיט
(אפדעיט)
(אפדעיט)
שורה 44: שורה 44:
.replace(/\s+/gm, ' '))
.replace(/\s+/gm, ' '))
.replace(/&[mn]dash;/g, '-')
.replace(/&[mn]dash;/g, '-')
.replace('"', '"')
.replace(/"/g, '"')
.replace(' ', ' ')
.replace(/ /g, ' ')
.replace('״', '"')
.replace(/״/g, '"')
.replace('׳', "'")
.replace(/׳/g, "'")
.replace(/(\n|\r)/g, ' ')
.replace(/(\n|\r)/g, ' ')
.replace(/=/g, "{{=}}")
.replace(/=/g, "{{=}}")
שורה 53: שורה 53:
.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
.replace(/ {2,}/g, ' ');
.replace(/ {2,}/g, ' ')
.replace('#google_vignette', '');
}
}


שורה 201: שורה 202:
{ var: ['articlePage', 'dimension1'] },
{ var: ['articlePage', 'dimension1'] },
{ telements: ["header address", VE] },
{ telements: ["header address", VE] },
{ attr: ["meta[name='author']", "content"] },
{ telem: 'address > a' },
{ telem: 'address > a' },
{ attr: ["meta[name='author']", "content"] },
{ telem: 'main > div > section > div > div > a', remove: [ 'שיתוף בוואטסאפ' ] },
{ telem: 'main > div > section > div > div > a' },
{ telem: 'address', remove: [ 'הארץ' ] }
{ telem: 'address' } ],
],
[
[
{ telem: 'header h1' },
{ telem: 'h1#article-header' },
{ attr: ['meta[property="og:title"]', 'content'] }
{ attr: ['meta[property="og:title"]', 'content'] }
],
],
שורה 341: שורה 343:
{ ldjson: { key:'author' } }
{ ldjson: { key:'author' } }
],
],
{ elem: '#F_Title, .mainArticletitle' },
[
{ url: 1, match: /=(\d+)/ },
{ elem: '#F_Title, .mainArticletitle' },
{ telem: 'h1.project_title' }
], { url: 1, match: /=(\d+)/ },
[
[
{ elem: '.articleInfo .timestamp, #coteret_Modified, #F_Modified_on, .g_Article_DateTime', date: '/' },
{ elem: '.articleInfo .timestamp, #coteret_Modified, #F_Modified_on, .g_Article_DateTime', date: '/' },
{ attr: ["meta[name='article_created']", "content"], date: '/' },
{ attr: ["meta[name='article_created']", "content"], date: '/' },
{ telem: '.articleInfo .timestamp', date: '.'}
{ telem: '.articleInfo .timestamp', date: '.'},
{ telem: 'span.project_date', date: '.'}
]
]
]
]
שורה 377: שורה 382:
params: [
params: [
{ str: 'עכשיו 14' },
{ str: 'עכשיו 14' },
{ telem: '.author-zone', remove: [/(:?חדשות|עכשיו) 14.*/] },
{ ldjson: { key:'author' } },
{ telem: '.post-title' },
{ attr: ["meta[property='og:title']", "content"], remove: [' | עכשיו 14'] },
{ url: 1, match: /il\/(.+?)\// },
{ url: 1, match: /il\/(.+?\/\d+)/ }
{ telem: '.date-zone', date: '/' }
]
]
},
},
שורה 502: שורה 506:
{ str: 'ישראל היום' },
{ str: 'ישראל היום' },
[
[
{ telem: ".normal14 .normal, .content li.taxonomy-term-reference-0, .views-field-name .field-content", remove: [/(:?כתבי|מערכת) ישראל היום/] },
{ telem: ".normal14 .normal, .content li.taxonomy-term-reference-0, .views-field-name .field-content", remove: [/(:?כתבי|מערכת) [א-ת]+ היום/] },
{ ldjson: { key:'author'}, remove: [/(:?כתבי|מערכת) ישראל היום/] }
{ ldjson: { key:'author'}, remove: [/(:?כתבי|מערכת) [א-ת]+ היום/] }
],
],
[
[
שורה 563: שורה 567:
{ telem: ".author-bar li:eq(1), .h3_date, div.art__info time", date: '.' },
{ telem: ".author-bar li:eq(1), .h3_date, div.art__info time", date: '.' },
{ telem: ".inner_bar", date:'/'},
{ telem: ".inner_bar", date:'/'},
{ url: 1, match: /\.com.*\/(\d{4}-\d{2}-\d{2})\/.*/, date:['-',[2,1,0]] },
{ telem: 'time', remove: [ /\d\d\:\d\d\, /, /.*• / ], removeDatePadding: true }
{ telem: 'time', remove: [ /\d\d\:\d\d\, /, /.*• / ], removeDatePadding: true }
],
],
שורה 576: שורה 581:
{ telem: ".calcalistArticleHeader_footer .authors" },
{ telem: ".calcalistArticleHeader_footer .authors" },
{ telem: "span.authorArticle" }
{ telem: "span.authorArticle" }
],
],
{ telem: "h1" },
{ telem: "h1 div.title" },
[
[
{ url: 1, match: /L\-(\d+)/ }, { attr: ["link[rel='alternate']", "href"], match: /guid=(\d+)/},
{ url: 1, match: /L\-(\d+)/ }, { attr: ["link[rel='alternate']", "href"], match: /guid=(\d+)/},
{ url: 1, match: /calcalist\.co\.il\/(.*?\/article\/.*)/i }
{ url: 1, match: /calcalist\.co\.il\/(.*)/ }
],
],
[
[
שורה 587: שורה 591:
{ telem: ".calcalistArticleHeader_footer .date", date: '.'},
{ telem: ".calcalistArticleHeader_footer .date", date: '.'},
{ telem: "span.art-publish-date", date: '.'}
{ telem: "span.art-publish-date", date: '.'}
]
]
]
]
שורה 669: שורה 672:
params: [
params: [
{ str: 'אתר צה"ל' },
{ str: 'אתר צה"ל' },
{ telem: ".article-primary p strong:eq(0)", match: /(.+)\|/ },
{ telem: ".author-article", remove: [ /,\s+מערכת.*/ ] },
{ telem: "h1" },
{ telem: "h1" },
[
[
{ attr: ["body", "data-uid"] },
{ attr: ["body", "data-uid"] },
{ url: 'decodeURI', match: /idf\.il\/(.*)$/ }
{ url: 'decodeURI', match: /idf\.il\/(.*)$/ }
], [
],
{ telem: ".article-primary p strong:eq(0)", date: '.' },
{ telem: ".rating-article > .rating-item", date: '.' }
{ attr: ['meta[property="article:published_time"]', 'content'], match: /(\d+\s+.*?\s+\d{4})/ },
{ telem: ".rating-article > .rating-item", date: '.' }
]
]
]
},
},
שורה 845: שורה 845:
'baderech': 'עיתונות|baderech',
'baderech': 'עיתונות|baderech',
'bamar': 'במערכה',
'bamar': 'במערכה',
'bustenai': 'עיתונות|bustenai',
'dav': 'דבר',
'dav': 'דבר',
'dhy': 'דואר היום',
'dhy': 'דואר היום',
שורה 902: שורה 903:
'ktuvim': 'כתובים',
'ktuvim': 'כתובים',
'lbf': 'לעבנס-פראגן',
'lbf': 'לעבנס-פראגן',
'lehiton': 'להיטון',
'lmrv': 'למרחב',
'lmrv': 'למרחב',
'ltb': 'ליטערארישע בלעטער',
'ltb': 'ליטערארישע בלעטער',
שורה 1,287: שורה 1,289:
{ str: "פס\"ד עליון" }
{ str: "פס\"ד עליון" }
],
],
{ prefix:'קישור=', urlparam: 'fileName'},
[
{ prefix:'קישור=', urlparam: 'path', func: function(s) { return !s.indexOf('NetVerdicts') ? s.replace('NetVerdicts/', '') : false; } },
{ prefix:'קישור=', urlparam: 'fileName'}
],
{ prefix:'קובץ=', url: 1, func: function(s) { return s.indexOf('NetVerdicts') > -1 ? getParameterByName('fileName') : ''; }, removeifempty: true },
{ prefix:'סוג=', var: 'all_text', match: /([^\s]+?)[\s]+\d+\/\d+/m},
{ prefix:'סוג=', var: 'all_text', match: /([^\s]+?)[\s]+\d+\/\d+/m},
[
[
שורה 1,530: שורה 1,536:
{ url: 1, match: /tidhar\/view\/(\d+)\/.+/ },
{ url: 1, match: /tidhar\/view\/(\d+)\/.+/ },
{ url: 1, match: /tidhar\/view\/\d+\/(\d+)/ }
{ url: 1, match: /tidhar\/view\/\d+\/(\d+)/ }
]
},
{
hostname: "zman.co.il",
params: [
{ str: 'זמן ישראל' },
{ ldjson: { key: 'author' } },
{ telem: "h1.headline" },
{ url: 1, match: /co\.il\/(\d+)/, dirty: true },
{ 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,717: שורה 1,741:
console.error(e);
console.error(e);
}
}
params[j] = cleanText(params[j]);
!curParam.dirty && (params[j] = cleanText(params[j]));
} else if (jQuery.isArray(params[j])) {
} else if (jQuery.isArray(params[j])) {
params[j] = jQuery.trim(params[j].join("|"));
params[j] = jQuery.trim(params[j].join("|"));
שורה 1,728: שורה 1,752:


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] = '';
if (typeof curParam.removeifempty != "undefined" && !params[j])
params[j] = 'removeifempty';
params[j] = '';
params[j] = '';


שורה 1,746: שורה 1,774:
while (params[params.length - 1] == "" && params.length > minimum) //remove all last empty params
while (params[params.length - 1] == "" && params.length > minimum) //remove all last empty params
params.pop();
params.pop();
// remove removeifempty child
while (params.indexOf('removeifempty') > -1)
params.splice(params.indexOf('removeifempty'), 1);


if (window.popup_template_canceled && !force_popup) {
if (window.popup_template_canceled && !force_popup) {

נאוויגאציע מעניו