Youtube Link Fix for addons/scripts

[Works in FF and Chrome!] changes youtube links to refresh whole page, so other scripts will work.

< Spätná väzba na Youtube Link Fix for addons/scripts

Otázka/komentár

§
Pridaný: 09.11.2015
Upravený: 10.11.2015

Script question

Hi, this is a great, very underrated script, but I am having an issue when using it. I've written a bunch of YouTube scripts and this one in particular: YouTube View More Uploader Videos

The script shows a playlist of text links, but when I use it with 'Youtube Link Fix for addons/scripts' it messes up the formatting of the links (perhaps it removes some css classes?).

Here's an image of what happens, left-side is before (normal), right-side is after (running both scripts):
http://i.imgur.com/vnDIyL3.png

Would you know what to change in your script to make it work so that the formatting of the links isn't effected? This is the one problem preventing me from including it in my 6 YouTube scripts.

One slight bit of feedback, I think your script would get more attention if it mentioned 'spf.js' in the title.
I was curious about something... I tried running a script with just $("a").removeClass("spf-link");... it seemed to produce the same results on YouTube, am I missing something?

cheers

§
Pridaný: 10.11.2015

Well, I found what might be an answer:
$("a").removeClass("spf-link").not("#watch-appbar-playlist");
The pages it opens don't seem to run spf.js, so it all works out.

cheers

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.