ripper234 / Whatever-Origin

An open source alternative to AnyOrigin.com (this project is looking for a maintainer)
http://whateverorigin.org/
319 stars 74 forks source link

Bug with Greasemonkey or Tampermonkey extensions #6

Open ghost opened 10 years ago

ghost commented 10 years ago

I tried to use Whatever-Origin with a extension that i'm developing for Chrome/FF and I encounter an issue with the reference of the jQuery instance.

Here's the code: var url = encodeURIComponent("http://www.google.com"); $.getJSON('http://whateverorigin.org/get?url=' + url + '&callback=?', function(data) { var html = data.contents; console.log(html); } );

The error: Uncaught ReferenceError: jQuery110202550689787603915_1396538223703 is not defined

I tried to create a nonConflict instance but i'm not been succesfull too, at this time i'm trying to find a way to send to Whatever-Origin the solid name of the reference that i'm invoking the method.

PS: I don't know if this is the correct page to put a bug report, i'm sorry if i did wrong i just want to let you know about this issue.

ripper234 commented 10 years ago

This is the correct page - however the problem is that whatever-origin isn't maintained. If you send in a pull request to fix the problem I may find the time to review and merge it.

kenegozi commented 9 years ago

The error suggest that jQuery send it as jsonp, however I think that grease monkey allows for normal requests that would just work here. Of course you would not need the service in this case to begin with.