brunomiguel / antinonio

Lista de bloqueios para a plataforma Nónio
Other
112 stars 13 forks source link

Record.pt - Image sliders (Fotogalerias) not working #29

Closed alcpereira closed 4 years ago

alcpereira commented 4 years ago

I can't figure out why but I'm pretty sure uBlock's antinonio is breaking the slider script. From what I've found jQuery, header.js and detalhe-multimedia.js are involved, but none of them are blocked.

The only way I found to resolve this was to remove the record.pt inline-script line from the list.

Any better way than doing that? Otherwise I'll request a pull to change this.

brunomiguel commented 4 years ago

I'll have to take a look at the website. I'll try doing it today, if my back pain allows me to.

brunomiguel commented 4 years ago

By the way, if possible, please leave an example link. Also, podes escrever em português à vontade :)

brunomiguel commented 4 years ago

A "culpa" é desta regra ||record.pt^$inline-script,important, que está a bloquear o seguinte, que me parece que é a parte em javascript que faz a gestão do slider

<script> $(function () { var configPubJson = { slotNames: { oopSlotName: 'OutOfPage', mastheadSlotName: 'BTFhorz', mrecSlotName: 'BTFvert', leaderboardSlotName: 'BTFhorz', inContentSlotName: 'BTFInContent' [...] </script>

Vou comentar a regra indicada no primeiro parágrafo, para que o slider funcione, e aguardar pelo feedback da comunidade caso haja problemas com a alteração.

brunomiguel commented 4 years ago

Se voltar a dar problemas, reabram este bug, por favor. Se não quiserem aguardar pela atualização automática do filtro no uBlock Origin, basta forçar a atualização dele nas opções do adblocker.

brunomiguel commented 4 years ago

Alteração testada com sucesso em:

alcpereira commented 4 years ago

Alteração testada com sucesso em: