Title: Trusted-Set-Attr is not setting valued in some cases. · uBlockO · Discussion #28 · GitHub
Open Graph Title: Trusted-Set-Attr is not setting valued in some cases. · uBlockO · Discussion #28
X Title: Trusted-Set-Attr is not setting valued in some cases. · uBlockO · Discussion #28
Description: Trusted-Set-Attr is not setting valued in some cases.
Open Graph Description: I found some cases where the attribute is not set, for example using * as selector will only set it in few elements on top of the tree of nodes but then it just stops, and don't add it to all. For ...
X Description: I found some cases where the attribute is not set, for example using * as selector will only set it in few elements on top of the tree of nodes but then it just stops, and don't add it to all. ...
Opengraph URL: https://github.com/orgs/uBlockO/discussions/28
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Trusted-Set-Attr is not setting valued in some cases.","text":"I found some cases where the attribute is not set, for example using * as selector will only set it in few elements on top of the tree of nodes but then it just stops, and don't add it to all.
\nFor example using search.brave.com##+js(tsa, target, _blank, *) it is only added to <body class=\"is-pc\">, and then <style type=\"text/css\"> and <div style=\"display: contents\"> but nothing further inside of them.
\nSo using search.brave.com##+js(tsa, target, _blank, a) will not be added to any search result.
\nif you want to compare it to the set-attr in uBlock. if you do a search.brave.com##+js(set-attr, target, 1, *) the attr will be set as expected, but of course, it is useless if it has limited values.
\nAnyway, just letting you know, if you want to check that.
\nThanks for your scriptlets, they are useful. Have a good day.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"@ghost Use search.brave.com##+js(tsa, target, _blank, *, loop)
\n\nsearch.brave.com##+js(set-attr, target, 1, *)
\n
\nThat doesn't work at all on Firefox for me.
","upvoteCount":1,"url":"https://github.com/orgs/uBlockO/discussions/28#discussioncomment-8121752"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/:org/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:caf0216d-6ef9-c181-c0b3-70649072b49f |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | DC96:977B5:BF456:FD198:698E5FF7 |
| html-safe-nonce | 5f86284c72b5b7cee8355462bf744394aa24bc6e712878c37139e4e6f0b7bc69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzk2Ojk3N0I1OkJGNDU2OkZEMTk4OjY5OEU1RkY3IiwidmlzaXRvcl9pZCI6IjQwMjQyNTY4OTYzNzg0OTQ5NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d9f7c5b83f9880299b093846c143afc2760084674da532cd0001f5663ecdbf7 |
| hovercard-subject-tag | discussion:6070642 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/uBlockO/28/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/d890b8db6e3a692bc23b00a4b2fb591d7b2fafca77395945cd6a13834b4690d8/orgs/uBlockO/discussions/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d890b8db6e3a692bc23b00a4b2fb591d7b2fafca77395945cd6a13834b4690d8/orgs/uBlockO/discussions/28 |
| og:image:alt | I found some cases where the attribute is not set, for example using * as selector will only set it in few elements on top of the tree of nodes but then it just stops, and don't add it to all. For ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| octolytics-dimension-user_id | 148974853 |
| octolytics-dimension-user_login | uBlockO |
| octolytics-dimension-repository_id | 89163410 |
| octolytics-dimension-repository_nwo | uBlockO/uBO-Scriptlets |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 89163410 |
| octolytics-dimension-repository_network_root_nwo | uBlockO/uBO-Scriptlets |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d67bd549813f8aceb31f205ebdb434e9d46d38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width