Напомена: Пошто објавите измене, можда ћете морати да обришете кеш меморију прегледача како бисте их видели. Google Chrome, Firefox, Microsoft Edge и Safari: Држите ⇧ Shift и кликните дугме Reload на траци са алаткама. За детаље и упутства о другим прегледачима, погледајте en:Wikipedia:Bypass your cache.

//Commons Helper 1&2
(function(mw, $){
    if (mw.config.get( 'wgNamespaceNumber' ) != 6 || !mw.config.get( 'wgCurRevisionId' )) return;
    $( function (){
        /* Add a link to one of the portlet menus on the page */
        mw.util.addPortletLink(
            /* id of the target portlet ("p-cactions", "p-personal", "p-navigation" or "p-tb") */
            "p-cactions",
            /* link URL */
            'http://tools.wikimedia.de/~magnus/commonshelper.php?'
            + 'language=' + mw.util.rawurlencode( mw.config.get( 'wgContentLanguage' ))
            + '&image=' + mw.util.wikiUrlencode( mw.config.get( 'wgTitle' ))
            + '&newname='
            + '&project=wikipedia'
            + '&username=' + mw.util.wikiUrlencode( mw.config.get( 'wgUserName' ))
            + '&commonsense=1'
            + '&remove_categories=1'
            + '&ignorewarnings=0'
            + '&reallydirectupload=1',
            /* link text (will be automatically lowercased by CSS for p-cactions in Monobook) */
            "CHelper",
            /* id of the new item, should be unique and preferably have the appropriate prefix ("ca-", "pt-", "n-" or "t-") */
            "ca-commonshelper",
            /* text to show when hovering over the link, without accesskey suffix */
            "Алатка за пребацивање слика са Википедије на Оставу",
            /* accesskey to activate this link (one character, try to avoid conflicts) */
            null,
            /* the DOM node before which the new item should be added, should be another item in the same list */
            null
        );
    });
    $( function (){
        /* Add a link to one of the portlet menus on the page */
        mw.util.addPortletLink(
            /* id of the target portlet ("p-cactions", "p-personal", "p-navigation" or "p-tb") */
            "p-cactions",
            /* link URL */
            'http://toolserver.org/~commonshelper2/index.php?'
            + 'language=' + mw.util.rawurlencode( mw.config.get( 'wgContentLanguage' ))
            + '&project=wikipedia'
            + '&file=' + mw.util.wikiUrlencode( mw.config.get( 'wgTitle' ))
            + '&target_file='
            + '&transfer_user=' + mw.util.wikiUrlencode( mw.config.get( 'wgUserName' ))
            + '&remove_existing_categories=1'
            + '&use_checkusage=1'
            + '&use_tusc=1',
            /* link text (will be automatically lowercased by CSS for p-cactions in Monobook) */
            "CHelper2 (exp)",
            /* id of the new item, should be unique and preferably have the appropriate prefix ("ca-", "pt-", "n-" or "t-") */
            "ca-commonshelper2",
            /* text to show when hovering over the link, without accesskey suffix */
            "Алатка за пребацивање слика са Википедије на Оставу",
            /* accesskey to activate this link (one character, try to avoid conflicts) */
            null,
            /* the DOM node before which the new item should be added, should be another item in the same list */
            null
        );
    });
})(mediaWiki, jQuery);

//[[Категорија:Корисничке скрипте]]