Created
March 22, 2021 12:01
-
-
Save NO-ob/d193b004c15dedeb348aa05ab4a587e0 to your computer and use it in GitHub Desktop.
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 Pixiv Image fit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Makes full image fit to screen | |
// @author NO_ob | |
// @match https://www.pixiv.net/en/artworks/* | |
// @icon https://www.google.com/s2/favicons?domain=pixiv.net | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = 'div[role=presentation] > div > div > div > img {max-width:100%}'; | |
head.appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment