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 03:37, 16 August 2014. 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, head = document.head, mw = window.mw, $ = window.$, importScript = function(src, async) {
        var script = document.createElement('script');
        script.src = mw.config.get('wgScript') + '?title=' + mw.util.wikiUrlencode(src) + '&action=raw&ctype=text/javascript';
        script.async = !!async;
        head.appendChild(script);
    }, MathJax = window.MathJax;
    window.insertBanner = function() {};
    importScript('User:Kxx/fix images.js', true);
    importScript('User:Kxx/comments in local time.js');
    if (window.navigator.userAgent.indexOf('iPhone') === -1)
        $('.smallcaps, .SMALLCAPS').addClass('smcp');
    $('img[srcset]').removeAttr('srcset');
    if (MathJax) {
        MathJax.Hub.Config({
            'HTML-CSS': {
                webFont: 'STIX-Web'
            }
        });
        MathJax.OutputJax.fontDir = '//cdn.mathjax.org/mathjax/latest/fonts';
    }
})();