with chat


SUBMITTED BY: Guest

DATE: March 17, 2013, 12:39 p.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 1203

  1. // ==UserScript==
  2. // @name http://s1.mlgame.co.uk/
  3. // @namespace http://use.i.E.your.homepage/
  4. // @version 0.1
  5. // @description enter something useful
  6. // @match http://s1.mlgame.co.uk/*
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
  8. // @copyright 2012+, You
  9. // ==/UserScript==
  10. function addGlobalStyle(css) {
  11. var head, style;
  12. head = document.getElementsByTagName('head')[0];
  13. if (!head) { return; }
  14. style = document.createElement('style');
  15. style.type = 'text/css';
  16. style.innerHTML = css;
  17. head.appendChild(style);
  18. }
  19. addGlobalStyle('#wrapper{width:100%;height:100%;border:1px solid black;overflow:auto}#first{float:left;width:50%;border:1px solid red}#second{border:1px solid green;margin:0 0 0 50%}');
  20. var calc =
  21. '<div id="wrapper"> '
  22. + '<div id="first">'
  23. + ' <iframe src="http://en.mylandsgame.info/calc11/" style="border:0px #FFFFFF none;" name="iFrame1" scrolling="yes" frameborder="0" height="100%" width="99%"> '
  24. + ' </iframe> '
  25. + '</div> '
  26. + '<div id="second">'
  27. + '<div><iframe src="http://lightirc.com/start/?host=irc.lightirc.com&autojoin=%23strangers&showNickSelection=false&nick=uglybob" style="width:99%; height:40%;"></iframe><div>'
  28. + ' </div> </div>';
  29. $('body').append(calc);

comments powered by Disqus