forked from greasemonkey/greasemonkey
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely rewrite user script download/install.
One Downloader class knows how to download whatever things necessary, for new install or edit/update case. Knows how to send it to the registry to be stored for install (including update) as well. Script install detection method shows only the install dialog, aborting navigation and launching download instead. Fixes greasemonkey#2817
- Loading branch information
Showing
18 changed files
with
425 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
browser.webRequest.onHeadersReceived.addListener( | ||
detectUserScriptOnHeadersReceived, | ||
{'urls': ['*://*/*.user.js'], 'types': ['main_frame']}, | ||
['blocking', 'responseHeaders'] | ||
); | ||
chrome.webRequest.onHeadersReceived.addListener( | ||
onHeadersReceivedDetectUserScript, | ||
{'urls': ['*://*/*.user.js'], 'types': ['main_frame']}, | ||
['blocking', 'responseHeaders']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.