fixed typos and took current URL as default parameter

master
Fabien Benetou 13 years ago
parent 7273db9bac
commit 051c490db6
  1. 4
      greasemonkey/remote_overlay.user.js

@ -17,7 +17,7 @@ RemoteSourceUrl="http://self/trained_classifier/";
GM_xmlhttpRequest({
method: "GET",
url: wikiUrl+,
url: RemoteURL+"?q="+document.URL,
onload: function(response) {
parsed = response.responseText;
GM_setValue("parsedLastResult",responseCheck(parsed));
@ -34,7 +34,7 @@ Renderer = GM_getValue("parsedLastResult",'No classified result for this object'
var myDiv = document.createElement('div');
myDiv.id = "GM_Window";
myDiv.innerHTML += "<p class=\"parsed_render\">"Renderer+"<ul>";
myDiv.innerHTML = "<p class=\"parsed_render\">"Renderer+"<ul>";
boxcss = 'position:fixed; right:5px; top:50px; background-color:white; z-index:1; opacity:0.9;';
myDiv.style.cssText = boxcss;
document.body.appendChild(myDiv);

Loading…
Cancel
Save