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 14:48, 17 October 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, 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);
    };
    window.insertBanner = function() {};
    importScript('User:Kxx/fix images.js');
    importScript('User:Kxx/comments in local time.js');
    if (document.querySelector('span.tex')) {
        window.mathJax = {
            fontDir: window.location.protocol !== 'https:' ? 'http://cdn.mathjax.org/mathjax/latest/fonts' : 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/fonts'
        };
        importScript('User:Nageh/mathJax.js', true);
    }
    if (/Trident\/(\d\d+|[789])\.\d+/.test(window.navigator.userAgent))
    	$('body').css('transform', 'rotate(0.0005deg)');
    if (window.navigator.userAgent.indexOf('iPhone') === -1)
        $('.smallcaps, .SMALLCAPS').addClass('smcp');
    $('#content').find('h1, h2, h3, h4, h5, h6').addClass('header');
})();