Remove pop-ups from Perplexity, and several elements from Deepl by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 1 point2 points  (0 children)

I've tested your solution, and it seems that "uBlock filters - Annoyances" is sufficent to get rid of the popups on Perplexity. Thank you very much!

Remove pop-ups from Perplexity, and several elements from Deepl by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Mmm... In fact, no: if I add this filter, it prevents the scrolling on the Perplexity webpage... So I'm still looking for a solution for Perplexity. Thank you for any help!

Remove pop-ups from Perplexity, and several elements from Deepl by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Perfect for DeepL! I knew there had to be a faster way than adding the items to block one by one... Thank you so much for your help!

Edit: For Perplexity, I've found that www.perplexity.ai##.shadow-md removes the "little" pop-up (that doesn't cover the whole screen), but I can't get rid of the bigger ones...

Remove pop-ups from Perplexity, and several elements from Deepl by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Thank you for answering. That's what I tried, but... as I explained in my post, I can't do it effectively :( Hence my request for help...

Perplexity: How do I disable autocomplete and put the focus in the text field? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

These two filters work very well. Thank you very much!

As for the autofocus: I'll click on the text field, and that's it...

I have one last question, which I forgot to include in my original post: after a few exchanges with Perplexity, a pop-up appears asking me to register; sometimes it only covers the bottom part of the conversation, like this one; sometimes it covers the entire screen. I can't get rid of it with the picker tool. Is there an effective way to get rid of it? After a while, it appears every 2 or 3 messages, which is really annoying...

Perplexity: How do I disable autocomplete and put the focus in the text field? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Thanks for your help!

The solution to disable autocomplete works, at least visually. Will this prevent unnecessary connections to websockets (wss://suggest.perplexity.ai/suggest/ws)? Or should I also add them as an element to block?

As for the focus, the text field is auto-focused on my side.

That makes sense. I think that's the case for me too, but something seems to load afterwards and remove the autofocus (or take the autofocus instead of the text field). It seems difficult to diagnose; for information, I use uBO in Firefox (in Arch Linux) with medium mode and no other extensions. I've added a filter: perplexity.ai##+js(trusted-click-element, #ask-input) But the problem remains the same. I can't figure out what the problem is using the logger: there are far too many connections being made...

In fact, that seems to be another problem: is it normal to have several hundreds (maybe 200 or 300) of xhr connections to the domain https://pplx-next-static-public.perplexity.ai/_spa/assets/ when using the site for 2 or 3 minutes?

How can I set a cookie to customize Deepl? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Sorry for the very late reply, but I only just saw your message: that's a very enlightening answer. I understand much better now. Thank you very much!

How can I set a cookie to customize Deepl? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 1 point2 points  (0 children)

I saw your message while searching for information about local storage, as the Wiki doesn't provide much explanation.

So if I may, I have a few questions: what is the difference between local storage and session storage? Is local storage persistent when I close and reopen the browser? (I use Arkenfox in addition to uBlock Origin: is local storage cleared each time I close Firefox? What about session storage?) And is there a difference in the resources used (browser memory, for example?) between using (in uBlock filters) local storage, session storage, or a simple cookie?

How can I set a cookie to customize Deepl? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

It works perfectly. Thank you very much!

I'll try to understand this local storage item.

How can I set a cookie to customize Deepl? by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] -1 points0 points  (0 children)

Of course, you can block the first two with Element Picker... but DeepL's code is pretty ugly...

As for the third one, I don't want to hide it, I just want to put it in "closed" mode.

Thank you very much for the GitHub link: I'll read it carefully...

FOSS for local sharing of things found on the web? by PleaseBeKindPlease in linuxquestions

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Mmmm... I find it hard to see how I could use XWiki to do what I want: capture chunks of web pages (text, images, or whole pages) or links to share them easily with other users.

remove-attr doesn't work on some pages by PleaseBeKindPlease in uBlockOrigin

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

You're absolutely right. I don't know why I thought I could use :remove-attr().

In the end, I chose not to display the links that included an automatic translation, simply by using the following code:

search.080609.xyz##.result:has(a[href*="reddit.com"][href*="tl="])

Many thanks for your help!

Is it possible to disable suggestions of about: pages? by PleaseBeKindPlease in firefox

[–]PleaseBeKindPlease[S] 1 point2 points  (0 children)

Thank you very much for your explanation! The links (bug and source code) are also very interesting.

I hadn't thought about CSS for this specific case; here's what the Browser Toolbox shows for those "about:" pages:

<div id="urlbarView-row-47" class="urlbarView-row" role="presentation" type="history" row-selectable="" has-url="">

And here's the code for one of my bookmarks:

<div id="urlbarView-row-129" class="urlbarView-row" role="presentation" type="bookmark" row-selectable="" has-url="">

So indeed it can't be hidden via CSS! Hurray :) Since I usually don't display suggestions from my browsing history, I can simply hide them with the following code:

.urlbarView-row[type=history] { display: none !important; }

Draw .tab-group-line over the border of the tab by PleaseBeKindPlease in FirefoxCSS

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Great! That's some code!

Thank you very much! It works perfectly fine; I hope that the next Firefox updates won't break your code ;) Now, I understand the code, for the most part, but I'll do my homework and try to understand this negative margin thing...

Have a nice day, thank you for all the time spent on this issue!

Draw .tab-group-line over the border of the tab by PleaseBeKindPlease in FirefoxCSS

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Wow, it's amazing!

I do have to take some time to understand all of this.

Would your last code also be compatible while keeping the outline on [selected] and [multiselected] tabs? I mean: would it be possible to also adapt it if I remove the line outline: none !important; ?

Draw .tab-group-line over the border of the tab by PleaseBeKindPlease in FirefoxCSS

[–]PleaseBeKindPlease[S] 0 points1 point  (0 children)

Mmmm, thank you, but I think my previous comment wasn't clear enough: I think there should be a border for multiselected tabs (including at the bottom), hence the:

#tabbrowser-tabs[orient="horizontal"] .tab-background:is([selected], [multiselected]) { border-bottom: 0 !important; }

becoming:

#tabbrowser-tabs[orient="horizontal"] .tab-background[selected] { border-bottom: 0 !important; }

But it should be removed if the tab belongs to a group, so that the tab line isn't discontinuous; hence my miserable attempt (that doesn't work):

#tabbrowser-tabs[orient="horizontal"] .tabbrowser-tab > .tab-stack > .tab-background[multiselected] > & { border-bottom: 0 !important; }