Embedded forum chat
- Info : Adds an embedded chat to Ogame
- Author :Faction
- Website :N/A
- Support :N/A
- Download :[spoiler]
Source Code
- // ==UserScript==
- // @name Embed Empire Forum Chat
- // @namespace EmpireForumChat
- // @description Embeds Empire forum chat into Ogame
- // @include http://uni1.ogame.us/game/*
- // @version 1
- // ==/UserScript==
- window.onload = function(){
- var link = "http://galacticempire.web-rpg.org/"
- var iframe = document.createElement('iframe');
- var div = document.createElement('div');
- //Set the div to the height/width of the chat box, and hide any extra junk
- div.style.position="relative";
- div.style.width="893px";
- div.style.height="320px";
- div.style.overflow="hidden";
- div.style.margin="auto";
- div.style.clear="both";
- div.id="chatContainer";
- //Adjust the positioning in the iframe to view the portion of the website with the chat box
- iframe.style.position="absolute";
- iframe.style.top="-340px";
- iframe.style.left="-25px";
- iframe.style.width="925px";
- iframe.style.height="700px";
- iframe.scrolling="no";
- iframe.setAttribute("src", link);
- //Add the iframe to the div
- div.appendChild(iframe);
- //Add the div on the page, above the footer
- document.body.appendChild(div);
- }
- Screenshot :i.imgur.com/DMshsPR.jpg
- Browser :Firefox (using Greasemonkey), Chrome (using Tampermonkey)
- Languages : N/A
[spoiler=Description]
-Just puts my allys forum chat at the bottom of the Ogame website.
[/spoiler]