aboutsummaryrefslogtreecommitdiffstats
path: root/manifest.json
diff options
context:
space:
mode:
authorTeddy Wing2017-08-23 00:23:10 +0200
committerTeddy Wing2017-08-23 00:23:10 +0200
commitb2b9f6b59a75925a3d046bc36d38104ec15cbe0d (patch)
tree75147a863b1f358cb6425460676d7cd55c1b6a79 /manifest.json
parent09626809013999b42f1930f1036debbd9b9db978 (diff)
downloadchrome-come-on-github-javascript-b2b9f6b59a75925a3d046bc36d38104ec15cbe0d.tar.bz2
Use newer Chrome User-Agent when accessing GitHub
Follow the examples on: - https://developer.chrome.com/extensions/webRequest#examples - https://developer.chrome.com/extensions/samples#search:catblock - https://stackoverflow.com/questions/10334909/associate-a-custom-user-agent-to-a-specific-google-chrome-page-tab to change the User-Agent header when accessing GitHub.
Diffstat (limited to 'manifest.json')
-rw-r--r--manifest.json9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifest.json b/manifest.json
index b50d7cb..854de84 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,6 +7,11 @@
"permissions": [
"webRequest",
- "https://*.github.com/"
- ]
+ "webRequestBlocking",
+ "https://github.com/*"
+ ],
+
+ "background": {
+ "scripts": ["change-user-agent.js"]
+ }
}