mehulmpt / ps-extender

Extends functionality of PSD interface by adding controls for swapping rows quickly using the generated tools by the script
MIT License
33 stars 19 forks source link

Add bulk move and migrate to MV3 #8

Closed Akshat-Oke closed 9 months ago

Akshat-Oke commented 2 years ago

Two changes:

1) Migrated to Manifest Version 3

This adds a scripting permission, since the tabs.executeScript has been replaced by scripting.executeScript in MV3

2) Added a bulk move option

This moves all stations which include the search string (or match the regex) provided by the user, to the top or to the bottom. image

Akshat-Oke commented 2 years ago

I just realised that this does not remove the jQuery sortable from the original because of MV3. A few more things need to be added in order to inject the .sortable('destroy') JavaScript in MV3

Akshat-Oke commented 2 years ago

The jQuery issue is now fixed. A file named jquery-disable.js has been added to the web_accessible_resources. This is now executed in the webpage's execution context and disables jQuery as it did previously (in MV2).