You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for more customizability and quality of life improvements
refactored code so it's more extensible and reusable
Feature / Update
Description
Enable Prefill with URL Option
- Checkbox allowing users to enable/disable adding the page URL to the message. - Useful for sending notifications without the URL. (Saves to storage)
Prefill Functionality
- Unchecking/checking the checkbox and saving the config updates the message in real-time. - Removes or appends the page URL to the message beginning. - Prevents duplicate removals/additions if the message is edited before saving config.
Enable Dark Mode
- Checkbox allowing users to enable/disable dark mode for the extension's UI. (Saves to storage)
Refactored popup.js
- Hoisted functions and global variables for execution before declaration. - Enables asynchronous functionality by retrieving data from storage once. - Previously called chrome.storage.sync.get() three times, now called once onload and stores values in global variables.
Modularized Functions
- Improved extensibility by modularizing functions. - Allows independent function calls (e.g., getConfigs, saveConfig, updateUI, showStatus, showWarning, etc.) from anywhere. - Facilitates future refactoring into separate files.
Retained Functionality
- All previous functionalities are maintained and tested.
Screenshot
Demo
Description
Simple browser extenstion to send urls or text to ntfy
Features
Send the current url or text to preconfigured topics