SO: /js/stub.js?v=3b6d34119f98

by Pratik Bhonsle

HTML

http://meta.stackoverflow.com/content/js/stub.js?v=3b6d34119f98

JavaScript

'use strict';
window.StackExchange = {};

function MSIsPlayback() {
    try {
        return parent && parent.WebPlayer
    } catch (d) {
        return !1
    }
}
if (!MSIsPlayback() && top != self) throw top.location.replace(document.location), $(function () {
    $("head").add("body").remove()
}), alert("For security reasons, framing is not allowed; click OK to remove the frames."), Error();
StackExchange.init = function () {
    function d() {
        $(document).on("click", ".convert-to-post", function (a) {
            a.preventDefault();
            a = $(this).attr("data-confirm");
            (!a || confirm(a)) && $("<form method='post'/>").attr("action", $(this).attr("href")).appendTo("body").append($("<input type='hidden' name='fkey' />").attr("value", $(this).attr("data-fkey"))).submit()
        })
    }
    function a() {
        function a(h) {
            StackExchange.options.user.fkey !== h && (StackExchange.options.user.fkey = h, $("input[name=fkey]").val(h))
        }
        function c() {
            var a = localStorage.getItem(d);
            if (!a) return {
                time: 0
            };
            a = a.split(/,/);
            return {
                fkey: a[0],
                time: parseInt(a[1], 10)
            }
        }
        var d = "se:fkey";
        $(window).on("storage", function (h) {
            h = h.originalEvent;
            h.key == d && h.newValue && a(h.newValue.split(/,/)[0])
        });
        try {
            var h = StackExchange.options.user.fkey,
                e = c();
            if (e.fkey !== h) if (StackExchange.options.serverTime > e.time) try {
                localStorage.setItem(d, h + "," + StackExchange.options.serverTime)
            } catch (f) {} else a(e.fkey)
        } catch (p) {}
    }
    var c = function (a) {
        if (!window.jQuery) if ("complete" != document.readyState) setTimeout(function () {
            c(a)
        },
        1E3);
        else {
            var d =...