1
0
Fork 0
mirror of https://github.com/Luzifer/userscripts.git synced 2024-12-22 20:31:20 +00:00

twitter-sensitive-show v0.1.1

This commit is contained in:
Knut Ahlers 2016-06-12 19:41:48 +02:00
commit ee8fd646cd
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -0,0 +1,24 @@
// ==UserScript==
// @name Twitter show all (sensitive) media
// @namespace http://luzifer.io/
// @version 0.1.1
// @description adds a button to show all hidden media
// @author Knut Ahlers <knut@luzifer.io>
// @homepage https://github.com/Luzifer/userscripts
// @supportURL https://github.com/Luzifer/userscripts/issues
// @match https://twitter.com/*
// @icon https://abs.twimg.com/a/1465528353/img/t1/favicon.svg
// @grant none
// @run-at document-idle
// ==/UserScript==
(function() {
'use strict';
var btn = $('<button type="button" class="btn"><span class="button-text">Show media</span></button>');
btn.bind('click', function(){
$('button.display-this-media').trigger('click');
});
btn.appendTo($('.UserActions'));
})();