Skip to content

Instantly share code, notes, and snippets.

View ewwink's full-sized avatar

erwin solihin ewwink

View GitHub Profile
@ewwink
ewwink / Plyr.io.js
Created November 30, 2022 16:35
Plyr.io Bookmarklet - Replace built in Browser video player with Plyr.io
(function() {
var css = document.createElement("link");
css.rel = "stylesheet";
css.href = "https://cdn.plyr.io/3.7.3/plyr.css";
document.body.appendChild(css);
var scr = document.createElement("script");
scr.src = "https://cdn.plyr.io/3.7.3/plyr.js";
scr.onload = function() {
document.querySelectorAll("video").forEach(function(v) {
var player = new Plyr(v);