You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getIdentifier(): string {returnnewFunction(metadata.getIdentifier.arguments,metadata.getIdentier.body)()}
### Describealternativesyou've considered
_Noresponse_
### AdditionalcontextExampleMetadata```json{"pageUrls": ["*://beta.crunchyroll.com/*"],"selectorStrings": {"default": {// do we even need this :?"getIdentifier":{"arguments": "","body": "return window.location.pathname.split('/')[2]"// <- wonder if reference gonna be right :U// guess we could simply pass in the window object}...}}}
Is your feature request related to a problem?
Seeing we have
metadata.json
for players, we could do the same for pages, which makes it easier for contribution and separation of concern.Describe the solution you'd like
Have it structured as such,
Function serialization/deserialization
https://stackoverflow.com/questions/36517173/how-to-store-a-javascript-function-in-json
Code of Conduct
The text was updated successfully, but these errors were encountered: