To remove the advertisement portion from the script, you need to delete the following lines:
if(!(localStorage.getItem('ads') == 'false')){ localStorage.setItem('ads', false); document.location = 'https://'+l; } else { localStorage.setItem('ads', true);} These lines are located towards the end of the script, under the window.addEventListener("load", (event) => { section. By deleting these lines, you will remove the part of the script that checks for the presence of a local storage item named 'ads'. If this item does not exist or its value is 'false', the script currently sets the 'ads' value to 'false' and then redirects to an advertisement website. Next, it sets 'ads' to 'true' so that the redirection won't be triggered again the next time the page loads. Eliminating these lines will effectively remove the advertisement-related behavior from the script.
To remove the advertisement portion from the script, you need to delete the following lines:
if(!(localStorage.getItem('ads') == 'false')){
localStorage.setItem('ads', false);
document.location = 'https://'+l;
} else { localStorage.setItem('ads', true);}
These lines are located towards the end of the script, under the window.addEventListener("load", (event) => { section. By deleting these lines, you will remove the part of the script that checks for the presence of a local storage item named 'ads'. If this item does not exist or its value is 'false', the script currently sets the 'ads' value to 'false' and then redirects to an advertisement website. Next, it sets 'ads' to 'true' so that the redirection won't be triggered again the next time the page loads. Eliminating these lines will effectively remove the advertisement-related behavior from the script.