back2themoon wrote: ↑2025-06-21, 09:43
I applied your suggestions and after some quicks tests, I couldn't reproduce it any more. Will post if it comes back.
Just a few notes:
The Privacy prompt will not appear at all when the often-used filterlists are active, but I guess that does not affect us here.
I also wanted to ask if this is applied globally, or just on athinorama.gr. which would be preferable I think at this stage.
I noticed:
if(host.includes("athinorama"). Is this relevant and can it be changed to "athinorama.gr" for a more targetted approach?
1. The code is not affected by the fact that the Privacy button doesn't appear (if the button that displays hidden content on the page works), but in my case the Privacy button does appear and this causes the button that displays the hidden content on the page to not work until the Privacy button is loaded on the page.
2. The code only interacts with pages that have "host=
www.athinorama.gr". For example, the code is not activated for the page
https://open.spotify.com/user/athinorama because this page has "host=open.spotify.com".
To see what "host" a page has, open "Tools / Developer Tools / Network":
08.png
3. No need to change "athinorama" to "athinorama.gr" for a "more targetted approach". If you do a Google search you will notice that there are only Greek "athinorama" pages ("gr" = top-level domain for Greece). But if you want to, you can make this change.
4. You say that: "I couldn't reproduce it. I'll post if it comes back."
The code will not work if there are "athinorama.gr" pages with problems that do not have the TAG with "id=main" (whose height must be reset). In this case, the code must be
updated to also target the new TAG with problems. Also, the Javascript code in the "athinorama.gr" page that makes the hidden content to be displayed is this:
Code: Select all
onclick="event.preventDefault(); showEventPlaces(this);"
If the "showEventPlaces" function is missing (or has a different name), my code also needs to be
updated.
You do not have the required permissions to view the files attached to this post.