[annoyances] allocine.fr

French supplemental subscription

Moderator: Liste AR & FR Mods

Locked
JustPassing
Senior Member
Senior Member
Posts: 56
Joined: Fri Apr 01, 2016 5:48 pm

[annoyances] allocine.fr

Post by JustPassing »

Bonjour, le site nous casse les pieds avec cette pub :

https://imgur.com/mftEITc

Même BehindTheOverlay n'arrive pas à la faire disparaître.
Blinder16
New Member
New Member
Posts: 4
Joined: Thu Feb 27, 2020 3:41 pm

Post by Blinder16 »

Celle-là vient du site lui-même et redirige vers le site, donc je ne sais pas si ça peut être retiré; après tout, ce n'est pas du contenu commercial à proprement parler.
JustPassing
Senior Member
Senior Member
Posts: 56
Joined: Fri Apr 01, 2016 5:48 pm

Post by JustPassing »

Bonjour,

Je suis désolé d'insister, mais je crois bien que ce genre de "layover" tombe dans la catégorie des désagréments ("annoyances"). Il faut fermer ce layover à chaque visite. J'ai essayé toutes les extensions de suppression de layovers, notamment Behind The Overlay, Behind The Overlay Revival, Overlay Remover Auto, ffCK Overlays. À chaque, je me retrouve avec une page sans la pub mais avec l'overlay toujours en place. Je peux paginer mais je ne peux cliquer sur rien (car c'est l'overlay).

https://i.imgur.com/E3OyLTo.png

C'est le seul site où il m'est impossible de me débarrasser de l'overlay sans cliquer dessus. Merci.
Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

J'ai testé.
Le dialogue et le masque sont affichés via une class CSS ajoutée au tag HTML ("open-modal")
En bloquant cela, on arrive à bloquer aussi l'affichage du dialogue.
Ceci fonctionne dans uBlock:

Code: Select all

allocine.fr##+js(aopw, document.documentElement.classList.add)
Est-ce que cela casse autre chose? A vous de voir à l'usage...
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

Your filter is breaking the home page, the slide stuff

try instead:

Code: Select all

allocine.fr##+js(set, document.documentElement.classList.add, trueFunc)
Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

@intense you know uBO syntax much better than me.
Do you know of any way to prevent only one specific class to be added instead of blocking all additions?
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

uBO has this scriptlet:
https://github.com/gorhill/uBlock/wiki/ ... rary#rcjs-

so, theoretically a filter like this allocine.fr##+js(rc, open-modal) should work, but .. it doesn't (because Will run only once after page load)

A member of uBO team wrote his own remove-class
see here: https://raw.githubusercontent.com/uBloc ... iptlets.js
search for rem-class.js (abbreviated rmc)

Install it in uBO (advanced settings):
image.png
then use this filter:
allocine.fr##+js(rmc, open-modal)

Why is working ? because remains hunting the target class (is using MutationObserver)
Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

intense wrote: Tue May 05, 2020 6:57 pm so, theoretically a filter like this allocine.fr##+js(rc, open-modal) should work, but .. it doesn't (because Will run only once after page load)
I had already tried it before commenting, and it failed as expected.
That why I asked if you knew a better method.
A member of uBO team wrote his own remove-class
...
Why is working ? because remains hunting the target class (is using MutationObserver)
I have several extensions/userscripts working with mutations observers. It's a nice feature.

What I thought would be a nice alternative it to have uBO intercept classList.add(), and ignore calls with a specific class as argument.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

and classic solutions:

Code: Select all

||allocine.fr^$csp=style-src 'unsafe-inline'
or

Code: Select all

||assets.allocine.fr/skin/css/allocine/secondary-styles.*.css$stylesheet,domain=allocine.fr
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

fixed in uBlock filters – Annoyances
https://github.com/uBlockOrigin/uAssets ... e379a43501
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

alternative uBO-solution ( @gorhill idea )

Code: Select all

allocine.fr##html.open-modal .overlay:style(display: none !important)
allocine.fr##html.open-modal body:style(overflow: auto !important)
allocine.fr##html.open-modal body::after:style(display: none !important;)
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

@intense , ublock annoyance is breaking displaying : viewtopic.php?f=91&t=44701&p=154768#p154768
Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

@intense I have found the solution, I think.

There are 2 popups driven by values in localstorage, but only if the page displayed has a referer url from the same site.
so

Code: Select all

allocine.fr##+js(aopw, document.referrer)
works
edit: aopr generates an error, aopw doesn't but works too

if you think this is safer: (empty string with apostrophes, not quotes)

Code: Select all

allocine.fr##+js(set, document.referrer, '')
Last edited by Procyon on Thu May 21, 2020 11:40 pm, edited 1 time in total.
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

is there any documentation about those js(aopw), js(set) etc what they do, how to use them etc ?
Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

@baloun ouvre l'interface de uBO, onglet "about" (le dernier, j'ai l'interface en anglais), "wiki"
Sur le wiki, dans l'index, section "dashboard / my filters" clique "Resources Library"
Last edited by Procyon on Thu May 21, 2020 11:40 pm, edited 1 time in total.
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

merci :) !
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

Procyon
Forum Junkie
Forum Junkie
Posts: 125
Joined: Sun Dec 01, 2019 1:35 am

Post by Procyon »

It works for me.
The popups are killed, and the right panel problem is solved.
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

ok for me too
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

hello the problem is back with allocine.
On firefox, i don't see the pictures (for the actors or movie pictures)
and on chrome and firefox i see big white boxes at the ad locations

and on chrome, easylist cookie doesn't prevent the cookie popup to display
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

update: the problems on firefox seems to be fixed now, it was maybe a bug not related with ublock
however on chrome i still see the white blocks
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

does this work ?

Code: Select all

allocine.fr##.sticky-ad-holder
baloun
Senior Member
Senior Member
Posts: 82
Joined: Sun Oct 01, 2017 4:00 pm

Post by baloun »

now without any change or filter added, chrome is working. Strange.
Thanks
Locked