See the green '<> Code' button. Clone the repository or download a zip file of the code.
To install the Chrome extension, follow these steps:
-
Prepare the Extension Directory:
- Ensure all files (
manifest.json,content.js,background.js,popup.html,popup.js,options.html,options.js, and theiconsfolder) in the sourceextensionfolder are put in a single folder on your harddisk, e.g.,BiketerraContentReader.
- Ensure all files (
-
Open Chrome Extensions Page:
- Open Google Chrome.
- Navigate to chrome://extensions/.
-
Enable Developer Mode:
- In the top right corner, toggle the switch to enable "Developer mode".
-
Load Unpacked Extension:
- Click on the "Load unpacked" button.
- Select the directory where your extension files are located (BiketerraContentReader).
-
Verify the Extension:
- Ensure the extension appears in the list with no errors.
- If there are errors, click on "Errors" to see the details and fix them accordingly.
-
Test the Extension:
- Open a new tab and navigate to https://biketerra.com.
- Open the extension popup by clicking on the extension icon in the Chrome toolbar.
- Verify that the content is being read and displayed correctly.
- Go to the extension options page by right-clicking the extension icon and selecting "Options".
- Set the WebSocket address and save it.
- WebSocket Server:
- Ensure you have a WebSocket server running at the address you set in the options page to receive the broadcast messages.
- The default address and port for the WebSocket server in Pedal Games is
localhost:49998.