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
I am not sure about the JSON.parse example, though. Having the capability to apply this kind of modification to an arbitrary function call can be dangerous in the wrong hands.
This approach makes adding new matching criteria really easy. Just a couple of examples that can be useful: match-url, match-selector, etc.
Some scriptlets that cannot be categorized as "function", "property" or "matcher" will be categorized as "actions", and it should still be possible to apply some "matchers" to them. For instance:
! run remove-attr only on a specific page
:match-url('some-page-url'):remove-attr('onclick', 'selector>here')
The text was updated successfully, but these errors were encountered:
Originally posted by @ameshkov in #82 (comment)
Check out all the comments in the thread.
Here are some thoughts on this.
Currently, there are two important scriptlets groups:
The algorithm, in general, may look like this:
Here are some of the existing scriptlets written this way (don't mind the naming, I am coming up with this right now):
This approach makes adding new matching criteria really easy. Just a couple of examples that can be useful:
match-url
,match-selector
, etc.Some scriptlets that cannot be categorized as "function", "property" or "matcher" will be categorized as "actions", and it should still be possible to apply some "matchers" to them. For instance:
The text was updated successfully, but these errors were encountered: