Привет, незнакомец!

Похоже, вы здесь новенький. Чтобы принять участие, нажмите одну из кнопок ниже!

Name of the video should appear on the top

Скрипт: FYTE /Fast YouTube Embedded/ Player
1356789

Комментарии

  • Set step attribute to 1. I'll do the same in the next update.

  • With the last updates, once again, the checkboxes are non-functional.


    Also for some reason there is a blank area (the size of the player) below the embedded video here

  • отредактировано July 2016 Chrome

    Fixed the checkboxes.
    Dunno how to fix that site, its CSS is utterly retarded in regard to embedded youtube videos. WTF is adding an :after rule to position the element itself!?

  • q1kq1k
    отредактировано July 2016 Firefox

    Looks to me, they are doing padding %.
    But, it seems it's not needed at all.
    -Why add it? I have no idea.

  • I think I've fixed it, try the new version.

  • Nope, whatever the change was, it broke the whole script, it's not detecting any videos now.

  • Should be fixed now.

  • q1kq1k
    отредактировано July 2016 Firefox

    OK,
    for some reason, now the max-width is not added in some places.
    You can see for yourself here on this page.
    I tried it with custom player size, max-width was not present. Tried it with also with 480p, still the same. And with Original all the videos didn't have width, not just the first there.

    On the blogspots it's the same, I guess because of the same reason.


    When resizing the browser though, it adds the width. So no problem there. Just the initial one.

  • Should be fixed now.

  • q1kq1k
    отредактировано July 2016 Firefox

    Just one more small problem on the wikia page.
    When entering a bigger height value, the video might and will cover part of the text.
    Can this be solved somehow?

  • I don't think it can be solved. Currently the "fix" is that I'm blindly replicating the position attributes of the original element, and for this method to be universal I can't risk changing those values, because if such [retarded] method was originally used, then it's probably hardwired to the site/container layout.

  • OK then...
    I guess I'll be increasing their bottom margin through stylish..

  • q1kq1k
    отредактировано July 2016 Firefox

    Hmm, I just noticed, somehow it's actually doing the first div, here on this page (video # 1)

    You see, there are 2 iframes and the script only changed the second, but now it's doing its work on the first iframe.. strange

    It wasn't doing that before...

  • Yep, I'm catching div[data-src*="youtube.com/"] now too.

  • q1kq1k
    отредактировано July 2016 Firefox

    The problem is,
    when trying to play the video, it doesn't load, the iframe is actually empty...

    Also enabling "safe", leaves all the embeds there untouched. While previously it was only the first one left alone, and the rest where replaced with the 'instant div'.

  • Updated.

  • q1kq1k
    отредактировано July 2016 Firefox

    That seems to have solved it.

    I just have one more thing, more of an idea.
    Basically, if the video doesn't exist, to somehow better indicate it, not just the blank black space.
    Maybe make that video smaller? Write a message on it ("Video unavailable/doesn't exist")? Or even disable clicking to play it?
    Just a thought..

  • Now the background is transparent

  • q1kq1k
    отредактировано July 2016 Firefox

    Well, if the img doesn't fit all of the div, there were black bars, now there is nothing.. It looks weird.

    Maybe change the background color to grey-ish if the video is unavailable.? Not just transparent.?

  • I thought so too. Okay, updated the script on greasyfork keeping old black background + gray for missing videos.

  • q1kq1k
    отредактировано July 2016 Firefox

    Hmm, well simply making it transparent won't make it grey if the website is dark/black, the background will still be black.

    Anyway, I think I can add my own custom style now.

  • Good point, I've switched to background: #888

  • q1kq1k
    отредактировано July 2016 Firefox

    #888 is a little too bright for my taste, I have added #575757 in my custom style now.
    Thanks.

  • q1kq1k
    отредактировано July 2016 Firefox

    Yet another place where the script fails to do its magic.
    It's in the disqus comments.
    Here's a page where there is a video. This one is again with 2 iframes.

  • q1kq1k
    отредактировано July 2016 Firefox

    With that it fails to play the video,
    just an empty iframe appears.

    The same now also happens on the gamespot site, the first video.

  • q1kq1k
    отредактировано July 2016 Firefox

    Yeah, that seems to do the trick.

    Just one other thing I noticed, the fullscreen option is not available in the disqus. Can that be enabled back?

Войдите или Зарегистрируйтесь чтобы комментировать.