Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore missing user/pass info in location.href.

Fixes #1631
  • Loading branch information...
commit 01cb1d42f543a5d07493a4736e9ae7d7dccd8662 1 parent 4a210c9
@arantius arantius authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 content/browser.js
View
8 content/browser.js
@@ -78,8 +78,12 @@ GM_BrowserUI.contentLoad = function(event) {
var href = safeWin.location.href;
// Make sure we are still on the page that fired this event, see issue #1083.
- // But ignore hashes; see issue #1445.
- if (href.replace(/#.*/, '') == event.target.documentURI.replace(/#.*/, '')) {
+ // But ignore differences in formats; see issue #1445 and #1631.
+ var comparisonHref = href.replace(/#.*/, '');
+ var comparsionUri = event.target.documentURI
+ .replace(/#.*/, '')
+ .replace(/\/\/[^\/:]+:[^\/@]+@/, '//');
+ if (comparisonHref == comparsionUri) {
GM_BrowserUI.gmSvc.runScripts('document-end', safeWin);
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.