Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add an options page #5

Merged
merged 5 commits into from
Apr 22, 2023
Merged

feat: add an options page #5

merged 5 commits into from
Apr 22, 2023

Conversation

nobkd
Copy link
Owner

@nobkd nobkd commented Apr 22, 2023

Might have to change the trash/remove icon.

Fixes that browser action icon always gets refreshed on dis/enabling of sites.
Adds options page with form and styles and ts functions to match the currently disabled sited.

The default structure for entries in the list is:

<div>
  <span>(sub.)domain.tld</span>
  <button onclick="removeEntry"></button>
</div>

The button is styled to contain the trash icon and removes an entry from the table by getting the index of the div in the table, and removes the domain from the disabled hosts. This works, because the entries in the table always have the same index in the disabledHosts array.

@nobkd nobkd merged commit 8e3defb into main Apr 22, 2023
@nobkd nobkd deleted the feat/options-page branch April 22, 2023 22:07
nobkd added a commit that referenced this pull request Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant