Vector Layout for Wikipedia (Fast)

returns old Wikipedia layout. (layout before 2023 redesign of the website)

< Отзив за Vector Layout for Wikipedia (Fast)

Отзив: Отлично - скриптът работи

§
Публикуван на: 09.02.2023

Very nice, thank you.

Except the very first page visited in wiki is "doubled" in history - once without the useskin parameter and once with it.

Try to find some wiki page on Google. When you click it, you can't go back to the results, because the previous history entry is the same page, only without the parameter.

NotYouАвтор
§
Публикуван на: 09.02.2023

@nethew, hi! Yeah, I know about the issue, I tried to fix it, but I think I can't, sorry about that 🤷‍♂️

P.S. You can use Wikipedia search engine to find content.

§
Публикуван на: 14.02.2023

We could use replaceState() instead of pushState() for the first page visited.
Here are the changes:
Line 25 redirect(href, true);
Line 44 function redirect(inputUrl, replaceHistory) {
Line 68 if (replaceHistory) {
history.replaceState({}, '', newPath);
}
else {
history.pushState({}, '', newPath);
}

Line 85 redirect(url, false);

NotYouАвтор
§
Публикуван на: 14.02.2023

@nethew, done, pretty nice solution, not gonna lie.

§
Публикуван на: 16.02.2023

Thank you very much, works well.

Публикувайте отговор

Влезте, за да публикувате отговор.