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

Refactor/migration options to manifest v3 #1

Closed

Conversation

DanSM-5
Copy link

@DanSM-5 DanSM-5 commented Jan 20, 2024

Integrate MPV profiles to MV3 extension

Description

These changes allow the MPV profiles feature from the MV2 version of the extension to work with the changes for MV3

Main changes

  • Use chrome.runtime.sendMessage API instead of chrome.extension.getBackgroundPage()
  • Rework context menu entries registration

Pending tasks (TODOs)

  • Platform identification. I didn't know if that should be kept or removed for mv3. I based my changes on what it was originally on the mv3 branch which means no platform identification.

Tests

I tested the feature and it is working on Google Chrome v120.0.6099.225 for windows.

DanSM-5 and others added 5 commits November 19, 2023 10:46
* feat: Add options menu for extension

* feat: Add options.html to manifest and storage permissions

* fix: delete option without id error

* feat: Update native client ff2mpv.py

* feat: Update ff2mpv.js to allow multiple context menus

* refactor: Remove logs

* refactor: Add new line at end of file

* feat: Update ruby client to support options

* refactor: Reduce unnecessary function calls

* refactor: Trim lines and prevent sending empty arguments

* fix: Prevent access to dead objects

* refactor: Remove uuid wrapper function

* refactor: Improve css handling for light and dark theme

* feat: Add warning message on top of options page

* refactor: Expand control flow on save/update

* refactor: Prevent unnecesary operations when deleting a new profile
DanSM-5 and others added 9 commits January 21, 2024 01:27
* feat: Add onMessageExternal to allow external applications to communicate with ff2mpv

* fix: Typo in console.warn function

Co-authored-by: William Woodruff <william@yossarian.net>

* refactor: Change log to debug

Co-authored-by: William Woodruff <william@yossarian.net>

---------

Co-authored-by: William Woodruff <william@yossarian.net>
* feat: Update context menu entry if no profiles

* refactor: Define TITLE global variable
* fix: Prevent error when trying to remove context menu on launch

* refactor: remove unnecessary backticks
Copy link
Owner

@eNV25 eNV25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

Can you rebase this on upstream just in case there are conflicts. You are more knowledgeable about options code than me.

I want all the upstream commits so far, and one commit for your changes squashed together.

Never mind, the multiple commit are OK.

ff2mpv.js Outdated Show resolved Hide resolved
@DanSM-5 DanSM-5 force-pushed the refactor/migration-options-to-manifest-v3 branch from c5d0e8f to 63f0656 Compare February 4, 2024 04:20
@eNV25 eNV25 closed this Feb 4, 2024
@DanSM-5 DanSM-5 deleted the refactor/migration-options-to-manifest-v3 branch July 28, 2024 21:02
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.

4 participants