Discussions » Creation Requests

Need help to find out what went wrong

§
Posted: 19-08-2021

My problem is with the website https://www.spiegel.de/

When I have no scripts active, everything works just fine, but as soon as I start using scripts like https://greasyfork.org/en/scripts/397052-free-spon the website does sometimes load very slowly or fails to load entirely.

However this problem is not limited to the specific script I linked but happens with other scripts too. Also browser extensions like UBlock Origin or Adblock Plus semm to have a similar effect.

The issue can not be reproduced consistently, which means you have to open and close the browser several times before it happens.

I tested with Firefox on a Windows 7 machine.


I tried to modify the Free SPON script to find a solution but wasnt successfull.

I tried to search for elements on the document so in case of the page not loading it would reload.

function fehler () {
var inhalt = document.querySelector('div[data-area], .RichText');
if(!inhalt) {
location.reload();
}}

setTimeout(fehler, 1000);

This seems to fix some cases but not all. Also there seems to be a different approach which might be slightly better.

Next I tried to manually set some cookies that the site would deploy when no scripts or other browser extensions would be active.

For example
document.cookie = '_sp_v1_consent=1!1:1:-1:-1:-1:-1; SameSite=Lax; expires=Sun, 1 Jan 2023 00:00:00 UTC; path=/'
document.cookie = '_sp_v1_opt=1:login|true:last_id|11:; SameSite=Lax; expires=Sun, 1 Jan 2023 00:00:00 UTC; path=/'

None of my attempts have been much of a success because I am not really good at finding out what is actually going on.
It would be great if someone could help.

Post reply

Sign in to post a reply.