Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with Greasemonkey or Tampermonkey extensions #6

Open
ghost opened this issue Apr 3, 2014 · 2 comments
Open

Bug with Greasemonkey or Tampermonkey extensions #6

ghost opened this issue Apr 3, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 3, 2014

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
Copy link
Owner

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
Copy link

kenegozi commented Nov 8, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants