مستخدم:ASammour/protect.js
المظهر
يمكن توفير توثيق لسكربت المستخدم هذا في الصفحة : مستخدم:ASammour/protect. |
ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.
let autoconfirmed = "هذه الصفحة محمية، ويمكن تعديلها فقط بواسطة المستخدمين المؤكدين.";
let review = "هذه الصفحة محمية، ويمكن تعديلها فقط بواسطة المستخدمين المحررين.";
let sysop = "هذه الصفحة محمية حماية كاملة، ويمكن تعديلها فقط بواسطة الإداريين.";
if (wgRestrictionEdit.includes ("autoconfirmed")){
$("h1.firstHeading").append ('<a title="'+autoconfirmed+'" aria-label="'+autoconfirmed+'" style="color: #ad936a;">🔒</a>');
}
else if (wgRestrictionEdit.includes ("review")){
$("h1.firstHeading").append ('<a title="'+review+'" aria-label="'+review+'" style="color: #aed4ef;">🔒</a>');
}
else if (wgRestrictionEdit.includes ("sysop")){
$("h1.firstHeading").append ('<a title="'+sysop+'" aria-label="'+sysop+'" style="color: #ff6161;">🔒</a>');
}