commit | 43ec2b912e0ac8105e83c44a39e23a7a822139ea | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Fri Jul 16 18:44:54 2021 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sat Jul 17 23:30:33 2021 +0200 |
tree | b1c1708bc20321ffaaa37379f224439bb5849269 | |
parent | 3913e28bb3b1c8c89c57cf3f11254ddcd4283a1a [diff] |
Add xhrInterceptor utility Some features would benefit from being able to listen to calls made by the Community Console client to the API. This way, the extension wouldn't need to make additional calls to the API, since it can directly get all the information from the current view via the xhrInterceptor. This change adds a script which is injected into the Community Console and acts as the interceptor. The src/common/xhrInterceptors.json5 file defines which calls should be intercepted, and which data (the request body or the response body) should be retrieved, and when the xhrInterceptor finds that an API call matches one of those definitions, it dispatches an event with the name defined in the json5 file and the prefix "TWPT_". Then, content scripts can listen for these events in order to work with the data provided in the event details. Bug: 6 Change-Id: Iea4aeb1f9db84f2c013d82ec4155c59617b8f9f0
An extension which brings several enhancements to the Google Forums and the Community Console.
For a list of features/enhancements, check out the feature list doc.
This extension is being actively developed, and everyone is welcome to make feature requests, report issues and contribute code changes.
In order to make feature requests or report issues, please do so at the Monorail Issue Tracker:
To see a more exhaustive guide on how to contribute, and information on how to contribute code changes, please read the following doc:
Before releasing updates to the stable channel, the newest versions are uploaded to the beta channel so they can be tested by everyone who's interested. This is another way to contribute to the project, because beta testing can make us notice bugs before they reach the stable channel.
The beta channel for Chrome is available here.