Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
$(function() {
    if (typeof arrow === 'undefined') {
        arrow = 'hybrid'
    };
    var _0x680cx1 = $('<li>')['attr']('id', 'ca-bottom')['css']('display', 'block')['addClass']('collapsible')['insertBefore']('.mw-watchlink');
    var _0x680cx2 = $('<span>')['appendTo'](_0x680cx1);
    var _0x680cx3 = $('<a>')['attr']('title', 'Go to the bottom of the page')['appendTo'](_0x680cx2)['on']('click', () => $('html, body')['animate']({
        scrollTop: $(document)['height']()
    }));

    function _0x680cx4() {
        var _0x680cx5;
        if (arrow == 'never') {
            _0x680cx5 = 'Bottom'
        } else {
            if (arrow == 'always') {
                _0x680cx5 = '\u2193'
            } else {
                if (_0x680cx1['css']('display') == 'list-item') {
                    _0x680cx5 = 'Bottom'
                } else {
                    _0x680cx5 = '\u2193'
                }
            }
        };
        _0x680cx3['html'](_0x680cx5)
    }
    _0x680cx4();
    new MutationObserver(_0x680cx4)['observe'](_0x680cx1[0], {
        attributes: true,
        attributeFilter: ['style']
    })
});
$(function() {
    'use strict';
    $('body')['append']('<span id="to-top" class="noprint">\u25B2 Go to top</span>');
    var _0x680cx6 = $('#to-top');
    _0x680cx6['css']({
        "\x63\x6F\x6C\x6F\x72": '#000',
        "\x70\x6F\x73\x69\x74\x69\x6F\x6E": 'fixed',
        "\x62\x6F\x74\x74\x6F\x6D": '-5px',
        "\x72\x69\x67\x68\x74": '4px',
        "\x63\x75\x72\x73\x6F\x72": 'pointer',
        "\x74\x72\x61\x6E\x73\x69\x74\x69\x6F\x6E": 'bottom 0.5s',
        "\x2D\x77\x65\x62\x6B\x69\x74\x2D\x74\x72\x61\x6E\x73\x69\x74\x69\x6F\x6E": 'bottom 0.5s',
        "\x75\x73\x65\x72\x2D\x73\x65\x6C\x65\x63\x74": 'none',
        "\x2D\x77\x65\x62\x6B\x69\x74\x2D\x75\x73\x65\x72\x2D\x73\x65\x6C\x65\x63\x74": 'none',
        "\x2D\x6D\x6F\x7A\x2D\x75\x73\x65\x72\x2D\x73\x65\x6C\x65\x63\x74": 'none',
        "\x2D\x6D\x73\x2D\x75\x73\x65\x72\x2D\x73\x65\x6C\x65\x63\x74": 'none'
    })['click'](function() {
        $('html, body')['animate']({
            scrollTop: 0
        }, 'slow')
    });
    $(window)['scroll'](function() {
        var _0x680cx7;
        switch (mw['config']['get']('skin')) {
            case 'minerva':
                _0x680cx7 = 100;
                break;
            case 'cologneblue':
                if ($('#p-wikibase-otherprojects')['length']) {
                    _0x680cx7 = $('#p-wikibase-otherprojects')['position']()['top'] + $('#p-wikibase-otherprojects')['outerHeight'](true) - $(window)['height']() + 20 + $('#quickbar')['position']()['top']
                } else {
                    _0x680cx7 = $('#p-coll-print_export')['position']()['top'] + $('#p-coll-print_export')['outerHeight'](true) - $(window)['height']() + 20 + $('#quickbar')['position']()['top']
                };
                break;
            default:
                _0x680cx7 = $('#p-lang')['position']()['top'] + $('#p-lang')['outerHeight'](true) - $(window)['height']() + 20
        };
        if (_0x680cx7 < 100) {
            _0x680cx7 = 100
        };
        if ($(window)['scrollTop']() > _0x680cx7) {
            _0x680cx6['css']('bottom', '4px')
        } else {
            _0x680cx6['css']('bottom', '-30px')
        }
    })
})