NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Pixiv Rankings Single Column // @description Get a sweet zoomed in view on the Rankings on Pixiv // @author Lann094 // @namespace lann094 // @include http://www.pixiv.net/ranking.php?* // @include https://www.pixiv.net/ranking.php?* // @version 1 // @updateURL https://openuserjs.org/meta/Lann094/Pixiv_Rankings_Single_Column.meta.js // @grant none // ==/UserScript== AddCSS('.ranking-items.adjust .ranking-item .ranking-image-item {width: inherit !important;}'); AddCSS('.ranking-items.adjust .ranking-item {width: 918px;}'); AddCSS('.ranking-items.adjust .work img {max-height: inherit !important; max-width: 768px;}'); Zoom(); function AddCSS(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } function Zoom() { var thumbs = document.getElementsByClassName('_thumbnail ui-scroll-view'); for (var thumb of thumbs) { if(thumb.src.search('/c/240x480/img-master') >= 0){ thumb.src = thumb.src.replace('/c/240x480/img-master', '/c/600x600/img-master'); } } setTimeout(Zoom, 500); }