Created
May 22, 2016 09:45
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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