GithubHelp home page GithubHelp logo

bfmatei / piptool Goto Github PK

View Code? Open in Web Editor NEW
356.0 16.0 34.0 259 KB

Add the Picture-in-Picture Functionality to YouTube, Netflix, Plex and other video broadcasting services in macOS Sierra

License: GNU General Public License v3.0

JavaScript 94.76% CSS 4.70% HTML 0.53%
youtube plex video-player netflix twitch-tv video picture-in-picture macos-sierra safari-extension typescript webpack emby tslint

piptool's Introduction

PiPTool

PiPTool is a Safari 10 extension built to add the Picture-in-Picture functionality to the video players that do not have it implemented.

For example, YouTube or DailyMotion don't have the default HTML5 video player, so Safari cannot add the PiP button. This is where PiP Tool comes in place.

Additionally, the extension comes with a menu button. Just click it and then select any video from the page.

Installation

  1. Download the extension from here: https://bfmatei.github.io/extensions/PiPTool.safariextz
  2. Open the downloaded file
  3. Click trust
  4. Enjoy!

Development

  1. Prerequisites: Node.js, Grunt, JSCS and JSHint
  2. Clone the repo
  3. Use "npm install" to install the needed packages
  4. If you want to develop, use "grunt live" to build and then listen for changes in the project files
  5. If you want to build the extension, use "grunt build"

Note: you need to use Safari to build the ".safariextz" file. The build command above just generates the files for Safari.

Improvements

  • Suggestions?

Changelog

Version 1.8.2

  • Fix Search mode

Version 1.8.1

  • Changed versioning type
  • Improved Plex native support
  • Added settings for additional Plex domains. The settings are accessible via Extensions panel in Safari preferences. You can add 1 domain like this: "test.com" or multiple domains "test1.com|test2.com|test3.com". IPs are supported too.
  • Improved picker mode by adding a red border to the current hovered element
  • Improved menu icon

Version 1.8

  • Added menu button to trigger the PiP mode manually for a picked video. Just click the PiPTool button then navigate with the mouse above page elements. If the selected element is a video, then it will trigger the PiP mode.
  • Reorganized the project a little

Version 1.7

  • Added initial Plex support
  • Added Netflix support (many thanks to Joe Kuhns for his hard work)
  • Fixed issue with YouTube not working on embedded videos
  • Improved the performance by triggering the plugin only on the supported websites (thanks, again, to Joe Kuhns)
  • Created a more programatic way to handle the project (instructions coming soon)
  • more to come

Version 1.6

  • Fixed PiP button not displaying when navigating to a movie from YouTube homepage
  • Added the possibility to bind custom event to trigger the PiP button loading
  • Possible fix for the [#3 playlists issues)

Version 1.5

  • Add the possibility to auto-update the extension

Version 1.4

  • Add functionality for DailyMotion. More to come soon
  • Optimize the code

Version 1.3

  • Make it work with all the YouTube videos in a page (for multiple embedded videos on same page)

Version 1.2

  • Simplify the code by removing unnecessary attribute

Version 1.1

Version 1.0

  • Initial release

Known Bugs

  • When leaving picture-in-picture mode the video stops

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.