Created
February 7, 2021 19:40
-
-
Save Spiderpig86/4fc0e8f97f04e52feec503c7620db0b7 to your computer and use it in GitHub Desktop.
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
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
chrome.webRequest.onCompleted.addListener(function(a) { | |
a.responseHeaders.forEach(function(a) { | |
a.value && a.value.length > 20 && (localStorage[a.name.toLowerCase()] = a.value) | |
}) | |
}, { | |
urls: ["*://" + x[2] + "*"], | |
types: ["image"] | |
}, ["responseHeaders"]), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment