DX improvements for third-party script developers#289
Draft
Kwack-Kwack wants to merge 2 commits intoManuito83:developfrom
Draft
DX improvements for third-party script developers#289Kwack-Kwack wants to merge 2 commits intoManuito83:developfrom
Kwack-Kwack wants to merge 2 commits intoManuito83:developfrom
Conversation
AlexTzib
added a commit
to AlexTzib/torn-pda
that referenced
this pull request
Apr 15, 2026
- Add ScriptHeaderModel and VersionModel classes for proper version matching - Add @grant header support to UserScriptModel - Add @require header support to UserScriptModel - Improve @match URL pattern matching with regex conversion - Update UserScriptModel to use VersionModel for version comparison - Add grants and requires fields to UserScriptModel - Update parseHeader, fromJson, toJson, fromMetaMap methods - Add comprehensive tests for new functionality - Add documentation for GM compatibility features Based on Kwack-Kwack's dx branch work
3 tasks
Manuito83
added a commit
that referenced
this pull request
Apr 25, 2026
Implement GM compatibility features for PR #289
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ok, lets try this again...
Goals
GM Compatibility
@grantheaders forGM_*,GM.*andPDA_*API access, as well as###PDA-APIKEY###replacement. Requires notice for developers - this is a breaking change.@requireheader support@matchURL matching, rather than just a raw substring checkGM_*andGM.*compatibility with ViolentMonkey where possible. ViolentMonkey is open-source, whereas modern TamperMonkey is not, therefore it will be much easier to achieve full compat hereScript Installation
@grantheaders with a basic breakdown.Runtime
[object Object]if possible)Documentation
PDA_*APICurrently a list of features that would be desirable. Some (
GM_*compat) are more important than others (hot reload).