Skip to content

Instantly share code, notes, and snippets.

@Wizek
Created May 22, 2016 09:45
Show Gist options
  • Save Wizek/38eb2d998eac5d56aca076e4b82a146a to your computer and use it in GitHub Desktop.
Save Wizek/38eb2d998eac5d56aca076e4b82a146a to your computer and use it in GitHub Desktop.
Allows Youtube videos to be fullscreen in Feedly (and possibly other embedded media too, not just Youtube)
// ==UserScript==
// @name Feedly fullscreen
// @namespace https://github.com/Wizek
// @version 0.1
// @description Allows Youtube videos to be fullscreen in Feedly (and possibly other embedded media too, not just Youtube)
// @author Wizek
// @match https://feedly.com/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js
// @noframe
// ==/UserScript==
// jshint asi:true
(function() {
'use strict';
setInterval(function () {
var a = $('iframe:not([allowfullscreen])')
if (a.length) {
a.attr('allowfullscreen', true)
var b = $('<div>')
b.insertBefore(a)
a.detach()
a.insertAfter(b)
}
}, 1000)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment