new version


SUBMITTED BY: Guest

DATE: March 4, 2013, 12:45 a.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 1310

  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:1500px;border:1px solid black;overflow:auto}#first{float:left;width:48%;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/calc/" 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=true&nick=User_%25" style="width:99%; height:40%;"></iframe><div>'
  28. + ' </div> </div>';
  29. $('body').append(calc);

comments powered by Disqus