Skip to content

mmz-srf/srf-browser-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser extension to make working with SRF/RTR content easier:

  • displays a banner with the current environment
  • adds an entry to the context menu to directly edit articles/landingpages in the CMS
  • shows actions in the popup panel to edit articles/landingpages/livetickers
  • link collection for front- and backend
  • supports dark theme
  • developer/experimental view with additional links and actions (e.g. webview, JSON view)

❗ Currently, only Chrome is supported ❗

Local Setup (WIP)

git clone [email protected]:mmz-srf/srf-browser-extension.git
cd srf-browser-extension

# https://parceljs.org/recipes/web-extension/
npm install
npm run build # creates the dist directory
npm run start # starts the dev server in watch mode

Load the unpacked extension by following this guide and using the dist directory.

"unpacked" means that the extension is not loaded from the web store but that it is loaded as-is from your local directory.

Hint: loading an unpacked version of the extension does not disable the one loaded from the web store. Make sure you're testing the correct one!

Auto-Publishing

The extension is automatically published to the Chrome Web Store when a Pull Request is merged into the main branch.

❗ Don't forget to update the version number in manifest.json before merging.