מדיה ויקי:Gadget-purple.js: הבדלים בין גרסאות בדף
מראה
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
/* טיוטה */ | /* טיוטה */ | ||
if (['ar', 'en', 'he'].includes(mw.config.get('wgUserLanguage')) { | if (['ar', 'en', 'he'].includes(mw.config.get('wgUserLanguage'))) { | ||
$.get(mw.util.wikiScript(), { | $.get(mw.util.wikiScript(), { | ||
title: 'module:ערך לא קיים/רשימה.json', | title: 'module:ערך לא קיים/רשימה.json', | ||
גרסה מ־17:39, 14 באפריל 2021
/* טיוטה */
if (['ar', 'en', 'he'].includes(mw.config.get('wgUserLanguage'))) {
$.get(mw.util.wikiScript(), {
title: 'module:ערך לא קיים/רשימה.json',
action: 'raw'
})
.done(function(data) {
jsonlist = JSON.parse(data);
$('a')
.filter(function() {
return Object.keys(jsonlist)
.includes($(this)
.text());
})
.addClass('purple')
.css({color: 'violet'});
});
}