We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/* FAIL: */ // opens https://path.com/ (WTF) GM_openInTab('path'); // opens file:///path GM_openInTab('/path'); // opens file:////domain.org GM_openInTab('//domain.org'); /* WORK: */ // opens current protocol + current domain + current path + 'path' window.open('path', '_blank'); // opens current protocol + current domain + '/path' window.open('/path', '_blank'); // opens current protocol + 'domain.org' window.open('//domain.org', '_blank');
I fixed that in my script by basically doing the following, which I really shouldn't have to:
open = function(URL) { var a = document.createElement('a'); a.href = URL; GM_openInTab(a.href); };
The text was updated successfully, but these errors were encountered:
In other words: RFC 2396 Point No. 5 (5.2)
Sorry, something went wrong.
c3d80bf
Yay.
This fix is now in 1.10beta1; let me know if it works for you: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/?page=1#version-1.10beta1
Works for me.
No branches or pull requests
I fixed that in my script by basically doing the following, which I really shouldn't have to:
The text was updated successfully, but these errors were encountered: