Vector Layout for Wikipedia (Fast)

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

< Vector Layout for Wikipedia (Fast) 피드백으로 돌아가기

리뷰: 좋음 - 스크립트가 잘 작동함

§
게시: 2023-02-16

Here's a fix for embedded video player.

If a video is embedded in the page like on https://en.wikipedia.org/wiki/Video clicking the video doesn't play it in lightbox, but goes to the video's info page instead and the video isn't playable in there either.

The fix would be to check if the link we're messing with has some specific attribute before we do the redirect on click. For now I have selected the role="button", but feel free to change it if you find something more general.

Add this to line 80: && !link.getAttribute('role')=='button'

NotYou작성자
§
게시: 2023-02-16

@nethew, fixed, thank you very much for help again! :)

§
게시: 2023-02-17

Thank you. My code was missing brackets, but you understood what it did and made it more general.

답글 게시

답글을 게시하려면 로그인하세요.

长期地址
遇到问题?请前往 GitHub 提 Issues。