Giter Site home page Giter Site logo

Comments (1)

indefined avatar indefined commented on May 19, 2024

简介说明了有简单写了,下次我还是写得仔细一点吧。简单来说问题并不是播放器造成的,是因为网站跨域加载的该网站域名之外的视频被浏览器认为是不安全所以拦截了脚本对视频内容的访问。

很多小型视频网站他们里面播放的视频都不是自己的,可能是第三方网站提供的,这些视频基本都无法直接下载截图,虽然有办法可以尝试绕过这个限制,但是通用性不高而且可能造成更多问题。脚本设置里提供了一个“匿名跨域”的选项,对于无法截图的网站你可以尝试勾选上然后保存为这个网站专用配置然后刷新网页看看有没有用。

注意如果你在截图工具栏上看到的视频前面带有"0-0-1-0"之类的前缀那么你保存的网站也必须和这个前缀相同。如果勾选了也没有用那么你应该删掉这个配置,跨域问题处理起来很棘手这个脚本只是简单尝试了一下能不能用罢了,动态加载的内容是不会被处理到的,同时有些网站匿名之后是获取不到视频的。你提供的两个网址第二个可以通过这个方法兼容,第一个就没办法。对于不允许匿名跨域的视频来说这是浏览器硬性的限制基本不可能解决,对于能允许匿名跨域的,在找到更简单高效的处理方法之前应该也不会增加兼容,这对于正常的网页访问会存在副作用不符合这个脚本不用就不干扰的逻辑

from userscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.