You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+126-10
Original file line number
Diff line number
Diff line change
@@ -3,25 +3,33 @@ Adds Picture in Picture functionality to Safari for YouTube, Netflix, Amazon Vid
3
3
4
4
<imgsrc="/promo/Promo-shot.png"alt="Screenshot of PiPer in action"width="512" />
5
5
6
-
## Installation
6
+
## Features
7
+
* Adds a dedicated Picture in Picture button to the video player of [supported sites](#supported-sites)
8
+
* Button integrates seamlessly with the player including hover effects and tooltips
9
+
* Supports closed captions in Picture and Picture mode
10
+
* Free and open source
7
11
12
+
## Installation
8
13
Get the latest release from the [Safari Extension Gallery](https://safari-extensions.apple.com/details/?id=com.amarcus.safari.piper-BQ6Q24MF9X)
9
14
10
-
<sub>...or live life on the edge with the latest [developer build](https://rawgit.com/amarcu5/PiPer/develop/out/PiPer.safariextz) (IMPORTANT: these builds do not update automatically!)</sub>
15
+
<sub>...or live life on the edge with the latest [development build](https://rawgit.com/amarcu5/PiPer/develop/out/PiPer.safariextz) (IMPORTANT: these builds do not update automatically!)</sub>
@@ -31,12 +39,120 @@ Get the latest release from the [Safari Extension Gallery](https://safari-extens
31
39
*[VRV](http://www.vrv.co)
32
40
*[YouTube](http://www.youtube.com)
33
41
34
-
## Acknowledgements
35
-
*[Pied PíPer](https://github.com/JoeKuhns/PiedPiPer.safariextension) for the original inspiration and the Netflix icon
36
-
*[Google](https://github.com/google/material-design-icons) for the Picture in Picture icon
42
+
## Changelog
43
+
You can find information about releases [here](https://github.com/amarcu5/PiPer/releases)
44
+
45
+
## Development
46
+
47
+
### Building
48
+
49
+
#### Prerequisites
50
+
* Mac running macOS 10.12 Sierra or later
37
51
38
-
## Build tools
52
+
#### Build tools
53
+
For convenience the following Node.js tools have been packaged with [nexe](https://github.com/nexe/nexe) and included in this repository:
54
+
*[csso](https://github.com/css/csso) (3.1.1) for compressing CSS
39
55
*[svgo](https://github.com/svg/svgo) (0.7.2) for compressing SVG images
40
56
*[xarjs](https://github.com/robertknight/xar-js) (0.2.0) for packaging Safari extension
41
-
*[ccjs](https://github.com/google/closure-compiler-js) (1.6.1) for compiling JavaScript
42
-
*[plistbuddy](https://github.com/amarcu5/PiPer/tree/master/build-tools/) for automated build numbering - reimplementation of utility from [Apple's Command Line Tools](https://developer.apple.com/download/)
57
+
*[google-closure-compiler-js](https://github.com/google/closure-compiler-js) (20170806.0.0) for compiling JavaScript
58
+
59
+
However it is recommended to install the latest versions with [Node.js](https://nodejs.org):
60
+
```Shell
61
+
npm install -g csso-cli
62
+
npm install -g svgo
63
+
npm install -g xar-js
64
+
npm install -g google-closure-compiler-js
65
+
```
66
+
67
+
Additionally a reimplementation of the utility PlistBuddy used for automated build numbering is [provided](https://github.com/amarcu5/PiPer/tree/master/build-tools/) but it is advisable to download the original as part of [Xcode](https://itunes.apple.com/gb/app/xcode/id497799835?mt=12) or from [Apple's Command Line Tools](https://developer.apple.com/download/)
68
+
69
+
#### Steps
70
+
1. Clone the repository
71
+
2. Run `make.sh`
72
+
1. By default this builds the unoptimized and unpackaged development version into the `./out/` directory that can then be installed using Safari's Extension Builder
73
+
2. Alternatively run `./make.sh -p release` to build the optimized and packaged release version (note that packaging requires a private key)
74
+
75
+
### Supporting a new site
76
+
If we wanted to support `example.com` with the source:
0 commit comments