window.sendMessage=function(b,e){b.origin="action";rea.extension.sendMessage(b,e)};
Registry.require(["layout","i18n"],function(){var b=Registry.get("i18n"),e=Registry.get("layout"),c=null,a=null,f=function(){c&&window.clearTimeout(c);c=null;a&&a.parentNode.removeChild(a);a=null},d=function(){var a=document.createElement("link");a.setAttribute("href","style.css");a.setAttribute("rel","stylesheet");a.setAttribute("type","text/css");(document.head||document.body).appendChild(a);d=null},c=window.setTimeout(function(){a=document.createElement("img");a.setAttribute("src","images/large-loading.gif");
document.getElementById("action").appendChild(a);d&&d()},500);window.addEventListener("DOMContentLoaded",d);e.init("action.js",{suc:f,fail:function(){f();confirm(b.getMessage("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&window.open("http://tampermonkey.net/bug")}})});
