Skip to content

Instantly share code, notes, and snippets.

@shotasenga
Last active February 9, 2018 03:24
Show Gist options
  • Save shotasenga/4e2d0b425f4dc260a6371f40c0ac30fb to your computer and use it in GitHub Desktop.
Save shotasenga/4e2d0b425f4dc260a6371f40c0ac30fb to your computer and use it in GitHub Desktop.
An user script to skip preview on backlog.jp
// ==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