Jump to content

User:Kxx/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kxx (talk | contribs) at 00:53, 20 May 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
(function() {
    var window = this, document = window.document, mw = window.mw, $ = window.$;
    window.insertBanner = function() {};
    // window.importScript('User:Kxx/fix images.js');
    window.importScript('User:Kxx/comments in local time.js');
    if (document.querySelector('span.tex')) {
        window.mathJax = {
            fontDir: 'http://cdn.mathjax.org/mathjax/latest/fonts'
        };
        window.importScript('User:Nageh/mathJax.js');
    }
    $.ajax({
        url: mw.config.get('wgScript') + '?title=' + mw.util.wikiUrlencode('User:Kxx/fix images.js') + '&action=raw&ctype=text/javascript',
        dataType: 'script',
        async: false,
        cache: true
    });
    if (window.navigator.userAgent.indexOf('iPhone') === -1)
        $('.smallcaps, .SMALLCAPS').css({
            fontVariant: 'normal',
            fontFeatureSettings: '"kern", "liga", "smcp"'
        });
    $('.mw-editsection').wrap('<span>').parent().parent().each(function() {
        $(this).contents().wrapAll('<div class="headertable">');
    });
})();