Created
November 22, 2016 18:08
-
-
Save fortserious/459cba2e8073881f8350d3f578c2358f to your computer and use it in GitHub Desktop.
facebook image blocker
This file contains hidden or 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 facebook no images ever | |
// @namespace www.rossdoran.com | |
// @version 0.1 | |
// @description text content the best content | |
// @match https://www.facebook.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @copyright ross doran 2016 | |
// @run-at document-start | |
// @noframes | |
// ==/UserScript== | |
// prevent images or videos from displaying, ever | |
$('head').append('<style type="text/css">img, video {display:none;}</style>'); | |
waitForKeyElements(".spotlight", function(){ | |
$(this).css("display","inline-block !important") // if photos are clicked on, display those photos only | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment