Last active
April 17, 2017 16:25
-
-
Save anamewing/c1b57f1bec65d90da3a7e1cb26be7b44 to your computer and use it in GitHub Desktop.
show the hidden media in Pawoo by default
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 pawoo_showMedia | |
// @namespace mewing | |
// @include https://pawoo.net/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Thanks to pawoo.netの画像全部表示するやつ by tasogare | |
// https://chrome.google.com/webstore/detail/hhfebcpaahgegnabkmhohnfochmbjjfd | |
// https://github.com/thr3a/pawoo-strip-media-spoiler-extension | |
var timer = 0; | |
document.addEventListener('DOMNodeInserted', function () { | |
if (timer) return; | |
timer = setTimeout(function () { | |
timer = 0; | |
$("div.media-spoiler").each(function () { | |
$(this).trigger('click'); | |
}); | |
}, 200); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment