Skip to content

Conversation

TravisTheTechie
Copy link

  • Implements GM.getValue / GM.setValue and that's it so far.
  • Needs some work, but I think from some basic testing seems to be working alright.
  • Access is scoped to each script.

* Implements GM.getValue / GM.setValue and that's it so far.
* Needs some work, but I think from some basic testing seems to be working alright.
* Access is scoped to each script.
@TravisTheTechie TravisTheTechie changed the base branch from master to develop May 25, 2025 20:29
Copy link
Collaborator

@Kwack-Kwack Kwack-Kwack left a comment

Choose a reason for hiding this comment

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

Pending cleanup and a couple comments, LGTM. Haven't tested on device/emulator yet, will do so once cleaned


return manifestMap.keys
.where((String key) => key.startsWith('assets/userscripts/apis/'))
.where((String key) => key.endsWith('.js'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possibly a stupid question - why not just .where((String key) => key.startsWith("...") && key.endsWith("..."))?

Copy link
Author

Choose a reason for hiding this comment

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

Eh, just my habit of breaking things up like this. I like to think about it this way, though I guess technically it is less efficient (depending on the implementation) because you need to iterate twice. Happy to change it.

* Includes a test script now for the API surface; checked it passes in other script hosts
* Figured out how to avoid leaking Future/async all the way the stack
@TravisTheTechie TravisTheTechie marked this pull request as ready for review May 30, 2025 22:26
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.

2 participants