Refactor VisualRelayPipe to return the original value without modifications. Update README.md to include instructions for building Chrome and Firefox extension packages.

This commit is contained in:
2025-10-23 16:10:48 +01:00
parent fa452445b9
commit bc9f4d4bcf
4 changed files with 3313 additions and 249 deletions

View File

@@ -63,6 +63,39 @@ then
3. click on "Load Temporary Add-on..."
4. select the `dist/firefox` folder
## Build Extension Packages
To create installable extension packages, first ensure you have built the extensions:
### Chrome Extension Package (.zip)
```bash
npm run build:chrome
cd dist/chrome
zip -r gooti-chrome-extension.zip .
```
**Install from package:**
1. Go to `chrome://extensions`
2. Enable "Developer mode"
3. Click "Load unpacked" and select the `dist/chrome` folder, OR
4. Drag and drop the `.zip` file onto the extensions page
### Firefox Extension Package (.xpi)
```bash
npm run build:firefox
cd dist/firefox
zip -r gooti-firefox-extension.xpi .
```
**Install from package:**
1. Go to `about:addons`
2. Click the gear icon and select "Install Add-on From File..."
3. Select the `.xpi` file
**Note:** Firefox may require the extension to be signed for permanent installation. For development and testing, use the temporary installation method described above.
## Testing the Extension
### Development Mode with Live Reload

View File

@@ -3,7 +3,10 @@
"version": 1,
"newProjectRoot": "projects",
"cli": {
"schematicCollections": ["angular-eslint"]
"schematicCollections": [
"angular-eslint"
],
"analytics": false
},
"projects": {
"chrome": {

3522
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,6 +5,6 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class VisualRelayPipe implements PipeTransform {
transform(value: string): string {
return value.toLowerCase().replace(/^wss?:\/\//, '').replace(/\/$/, '');
return value;
}
}