Jump to content

User:Keymanweb/keymanweb.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Keymanweb (talk | contribs) at 00:19, 20 April 2012 (Fixup KeymanWeb script reference so it works.). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
(function() {
  importStylesheetURI( 'http://en.wikipedia.org/w/index.php?title=User:Keymanweb/keymanweb.css&action=raw&ctype=text/css' );

  var script = document.createElement( 'script' );
  script.type = 'text/javascript';
  script.src = 'https://r.keymanweb.com/code/?domain='+location.hostname+"&id=243&page="+encodeURIComponent(location.pathname);
  document.getElementsByTagName('head')[0].appendChild(script);

  addOnloadHook( function() {
    document.getElementById('bodyContent').innerHTML = "<div id='KeymanWebControl'></div>" + document.getElementById('bodyContent').innerHTML;
  } );

})();