Last active
February 9, 2018 03:24
-
-
Save shotasenga/4e2d0b425f4dc260a6371f40c0ac30fb to your computer and use it in GitHub Desktop.
An user script to skip preview on backlog.jp
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 Skip Image Preview on Backlog | |
// @namespace http://senta.me/ | |
// @version 0.1 | |
// @description View an image directly instead of the useless preview | |
// @author @__senta | |
// @match https://*.backlog.jp/ViewAttachment.action?attachmentId=* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const img = document.getElementsByTagName('img') | |
if (img.length < 1) { | |
return | |
} | |
window.location.href = img[0].src | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment