Last active
October 13, 2017 19:21
-
-
Save RoxasShadow/2301e5963fc508dc9b7eaf124e025802 to your computer and use it in GitHub Desktop.
This file contains 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-gallery-hq | |
// @namespace pixiv-gallery-hq | |
// @description Make pixiv galleries optimized for hires screens | |
// @include https://www.pixiv.net/member_illust.php?id=* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$('._thumbnail').each((i, e_) => { | |
let e = $(e_); | |
let s = e.attr('data-src').replace('150x150', '600x600'); | |
e.removeAttr('data-filter'); | |
e.removeAttr('data-src'); | |
e.attr('src', s); | |
}); | |
// pics | |
$('._thumbnail').css('width', '20vh').css('height', 'auto'); | |
$('._work').css('width', 'auto').css('height', 'auto'); | |
$('.image-item').css('width', 'auto').css('margin-bottom', '0'); | |
// images box | |
$('.layout-column-2').css('width', '160vh').css('margin-right', '8vh'); | |
$('.layout-a').css('width', '100%'); | |
$('#wrapper').css('width', '100%').css('margin', '0'); | |
// user box | |
$('.layout-column-1').css('margin-left', '10vh'); |
If the script does not get activate, replace window.screen.height
with $(document).height()
$('.image-item').css('width', '22%').css('height', 'auto');
could work fine too (1440p on W10)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alternative working on both gallery and single page