-
I want my tampermonkey script to be executed in specific iframes that contains // Should be executed in these iframes
<iframe class="page-frame" id="iframe-0"></iframe>
<iframe class="page-frame" id="iframe-1"></iframe>
// Should ignore this
<iframe class="random-frame" id="randomframe-0"></iframe> |
Beta Was this translation helpful? Give feedback.
Answered by
derjanb
Aug 24, 2022
Replies: 1 comment 1 reply
-
This is not possible. Scripts are only filtered by tab/frame URL. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Murka007
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not possible. Scripts are only filtered by tab/frame URL.
In case the iframe is embedded inside a page with the same origin you can manually filter where the script should finally do something.