embed calc


SUBMITTED BY: Guest

DATE: March 3, 2013, 9:20 p.m.

FORMAT: Text only

SIZE: 2.0 kB

HITS: 1204

  1. 1 go to -> https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
  2. 2 add Tampermonkey to chrome
  3. 3 Tampermonkey -> click on add new script
  4. 4 Paste code provide below
  5. 5 save script
  6. 6 Reload tab containing game
  7. // ==UserScript==
  8. // @name http://s1.mlgame.co.uk/
  9. // @namespace http://use.i.E.your.homepage/
  10. // @version 0.1
  11. // @description enter something useful
  12. // @match http://s1.mlgame.co.uk/*
  13. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
  14. // @copyright 2012+, You
  15. // ==/UserScript==
  16. function addGlobalStyle(css) {
  17. var head, style;
  18. head = document.getElementsByTagName('head')[0];
  19. if (!head) { return; }
  20. style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25. addGlobalStyle('#wrapper{width:100%;height:100%;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%}');
  26. var calc =
  27. '<div id="wrapper"> '
  28. + '<div id="first">'
  29. + ' <iframe src="http://en.mylandsgame.info/calc/" style="border:0px #FFFFFF none;" name="iFrame1" scrolling="yes" frameborder="0" height="100%" width="99%"> '
  30. + ' </iframe> '
  31. + '</div> '
  32. + '<div id="second">'
  33. + '<div>Unit Calculator'
  34. + '<iframe src="http://en.mylandsgame.info/calc7/calc3.html" style="border:0px #FFFFFF none;" name="iFrame2" scrolling="yes" height="50%" width="99%"></iframe></div>'
  35. + '<div>Building Destruction'
  36. + '<iframe src="http://en.mylandsgame.info/calc7/calc1.html" style="border:0px #FFFFFF none;" name="iFrame3" scrolling="yes" height="50%" width="99%"></iframe></div>'
  37. + ' </div> </div>';
  38. $('body').append(calc);

comments powered by Disqus