| CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 948
New rpnt (prev. sed) scriptlet #18185
Replies: 11 comments · 61 replies
-
|
It was added a
Do you still see |
Beta Was this translation helpful? Give feedback.
All reactions
-
Because on chromium it's inserted as an inline-script rather than a blob url ? |
Beta Was this translation helpful? Give feedback.
All reactions
-
The new I had to adjust the scriptlet a bit since it turns out that in Firefox it is injected earlier than Chromium: with Chromium, there is an |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Should we ask Rob Wu on slack about Firefox' policy? Better than guessing I think. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Let's not raise the issue, if AdGuard's |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 4 -
π 1
-
|
@stephenhawk8054 ghacks filter no longer works because admin added space before and after the word, so change the filter to |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Is If it is a string, how could a comma |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
use example: |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
|
I can confirm it works fine on Firefox now on all 3 tested domains. Also the filter i added for the video ads now working fine on Firefox. Thanks. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Screenshot_20230720-201859_Firefox Nightly |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Does ##+js(aeld, visibilitychange)work? |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1 -
π 1
-
|
Nope it doesn't..for context it was dropgalaxy 15 sec timer which doesn't get counted if browser is minimized anyway thanks for the helpπ₯Ί |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@BlazeFTL |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
@uBlock-user Working thank you broπ |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
@gorhill What does |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
|
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
|
I am probably abusing the original command name. I will move |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1 -
π 2
-
|
uBlockOrigin/uBlock-issues#2531 (comment) On Can the scriptlet remove |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Unlikely since the URL is uriComponentEncode-ed. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
I would debug why on a Japanese PC/macbook/iMac the a href-sanitizer doesn't work for him (It works fine for me on a "Polish PC" in Firefox and Chrome). And rather weak is his explanation that he needs a scriptlet already in uBo stable. |
Beta Was this translation helpful? Give feedback.
All reactions
-
By the way in last dev build, I rename the scriptlet |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
|
Fyi, |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2 -
π 1 -
π 1
-
|
So now you have to wait for 1.49.3rc5 or stable 1.49.4+. The worst thing is that someone already wanted to do a similar operation with a paragraph in "article" |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I tried to remove γΉγγ³γ΅γΌγγͺγ³γ― texts visible on |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Valid node names are what is listed at https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName. A class name is not a node name. The |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
|
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Yes, working! Didn't know |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
But these two both work: And this one doesn't work (correctly): |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Also these malform DOM tree: example.com##+js(rpnt, , Example Domain, Changed)
example.com##+js(rpnt,, Example Domain, Changed) |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
It may have already asked, but will it be possible to replace only part of target text? |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Doesn't this work? |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Ah, so saving string is already supported, that's good. But the main point is to replace only part of the text. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Sorry I don't understand what you are saying.
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Sorry, it was just my regex was wrong. I didn't escape |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
You can also use quotes if you don't want to mind commas: |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3
-
|
I'm curious about this: in Firefox is it possible to replace text in the document by utilizing Looking at MDN example, I think it's possible but I'm not sure: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/filterResponseData#examples |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
It's possible, but modifying HTML by RegEx is prone to errors, that's why in uBO source text is parsed by DOMParser to DOM tree and standard tools then can be used to filter elements. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I see. Thanks for the information. Based on this: #18185 (reply in thread) , I think replace text using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I saw a new commit here gorhill/uBlock@4187633 so i tested the new scriptlet.
But it doesnβt work always on my end. When i add
example.com##+js(sed, #text, Domain)as a exampe it works when i open the page for the first time but after a reload the scriptlet doesnβt kick in.Do i did a mistake? Or is this a bug? Tested with Firefox and uBlock Origin 1.49.3b17
Beta Was this translation helpful? Give feedback.
All reactions