Skip to content

Instantly share code, notes, and snippets.

@pacochi
Last active March 1, 2019 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacochi/e1b0b440109471571add59f4f5444b82 to your computer and use it in GitHub Desktop.
Save pacochi/e1b0b440109471571add59f4f5444b82 to your computer and use it in GitHub Desktop.
thiscatdoesnotexist.com リロード支援
// ==UserScript==
// @name thiscatdoesnotexist reload assist
// @namespace hen.acho.co
// @version 0.190301
// @description click cat's picture and reload
// @author pacochi
// @match https://thiscatdoesnotexist.com
// @downloadURL https://gist.github.com/pacochi/e1b0b440109471571add59f4f5444b82/raw/thiscatdoesnotexist_reload.user.js
// @grant none
// ==/UserScript==
// ものぐさして location.reload 直つっこみしたら TypeError: 'reload' called on an object that does not implement interface Location. て言われた
document.body.firstChild.addEventListener('click', () => location.reload());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment