מדיה ויקי:Gadget-purple.js: הבדלים בין גרסאות בדף
יצירת דף עם התוכן "$('a') .filter(function() { return ['SCP', 'FTP'].includes($(this) .text()); }) .addClass('purple');" |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
$('a') | $.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'); | |||
}); | |||