/crx-Ok-ru

website userscript: redirect embedded videos from "ok.ru" to an external player

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Userscript for Ok.ru to run in both:

Its purpose is to:

  • redirect embedded videos to an external player

Notes:

  • the userscript will not execute in embedded Ok.ru iframe(s) when:
    • running the userscript in WebMonkey
    • running the userscript in Tampermonkey with the option common.redirect_embedded_iframes disabled
      • this option is disabled by default
  • when the userscript will not execute in embedded Ok.ru iframe(s)
    • the Ok.ru video player needs to be loaded into the top window
    • this can either be done:
      • automatically, by using an additional userscript helper
      • manually, by clicking the "Open in..." button in the Ok.ru video player
  • when running the userscript in Tampermonkey
    • on sites containing embedded Ok.ru iframe(s)
      • when the option common.redirect_embedded_iframes is enabled
        • depending on your particular browser, the Chromium extension may not be allowed to redirect the parent window
        • in this case, the URL of the parent window needs to be added to a whitelist that allows this action:
          • open: chrome://settings/content/popups
          • next to Allow, click: Add
          • enter the domain for the site hosting the iframe
            • examples:
              • https://nfl-video.com:443
              • https://2livewatch.blogspot.com:443
              • https://freetvonline.live:443
              • http://ufreetv.com:80
    • after the video has been redirected to WebCast-Reloaded external website
      • video streams will not play directly in the browser window
        • lack of permissive CORS HTTP response headers
      • video streams will play directly on Chromecast and ExoAirPlayer

Legal: