Skip to content

Instantly share code, notes, and snippets.

@anamewing
Last active April 17, 2017 16:25
Show Gist options
  • Save anamewing/c1b57f1bec65d90da3a7e1cb26be7b44 to your computer and use it in GitHub Desktop.
Save anamewing/c1b57f1bec65d90da3a7e1cb26be7b44 to your computer and use it in GitHub Desktop.
show the hidden media in Pawoo by default
// ==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