Jump to content

User:M.robin/common.js: Difference between revisions

M.robin (talk | contribs)
No edit summary
M.robin (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
importScript('User:M.robin/Interwiki.js');
alert("COMMON JS LOADED");  // בודק שהקובץ נטען
mw.loader.using(['mediawiki.util']).then(function () {
importScript('User:M.robin/Interwiki.js'); // טעינה של הסקריפט הפנימי שלך
    $(function () {
        mw.util.addPortletLink(
            'p-tb',
            '#',
            'כפתור בדיקה',
            't-test-button',
            'כפתור לבדיקה'
        );
        console.log("✅ כפתור בדיקה נוסף");
    });
});

Latest revision as of 16:29, 4 March 2026

alert("COMMON JS LOADED");  // בודק שהקובץ נטען
importScript('User:M.robin/Interwiki.js');  // טעינה של הסקריפט הפנימי שלך