YouTube Link Cleaner

Removes unneeded parameters and redirection pages from YouTube links.

< Σχολιασμός για τον κώδικα YouTube Link Cleaner

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 30/12/2014

Contribution

I've made a little updated version where I added my url parser to grab the relevant parameters and recreate the links rather than cutting irrelevant ones off.

It also uses history.pushState rather than location.replace to change the url bar so it won't reload the page.

Source: https://gist.github.com/Zod-/88a0c303caef51eb2597

§
Δημοσιεύτηκε: 25/05/2015

@tfr , Can you update your new version so it doesn't reload the page ?
TIA.

§
Δημοσιεύτηκε: 25/08/2015
Επεξεργάστηκε: 25/08/2015

That actually works really well.

Except history.replaceState(null,null,url); replaces the page URL, while history.pushState(null,null,url); keeps the old url in the navigation history, so pressing back will go to the unwanted url.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.