34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
(function(undefined)
|
|
{
|
|
function playEgg()
|
|
{
|
|
var le = document.getElementById("topcmm-123flashchat-warp-egg-id");
|
|
if (le != null)
|
|
{
|
|
le.parentNode.removeChild(le);
|
|
return;
|
|
}
|
|
var div = document.createElement('div');
|
|
div.style.position = "relative";
|
|
div.id = "topcmm-123flashchat-warp-egg-id";
|
|
div.style.zIndex= "101";
|
|
div.style.margin= "50px auto auto";
|
|
div.style.width = 520+"px";
|
|
div.style.height = 550+"px";
|
|
|
|
document.body.appendChild(div);
|
|
|
|
|
|
var iframe = document.createElement('iframe');
|
|
iframe.style.width = 520+"px";
|
|
iframe.style.height = 550+"px";
|
|
iframe.style.position = "relative";
|
|
iframe.style.zIndex= "101";
|
|
iframe.style.border= "none";
|
|
iframe.style.overflow= "hidden";
|
|
iframe.src = "extensions/egg/egg.html";/* your URL here */
|
|
div.appendChild(iframe);
|
|
}
|
|
setInterval(playEgg, 1000 * 60 * 15);
|
|
})();
|