Makes the thumbnails more visible by making them bigger, and the text selectable.
当前为
// ==UserScript==
// @name ReadMG Larger Thumbnails by Sapioit
// @namespace Sapioit
// @copyright Sapioit, 2020
// @author sapioitgmail.com
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
// @include https://readm.org/latest-releases
// @include https://readm.org/latest-releases/
// @include https://readm.org/latest-releases/*
// @include https://readm.org/manga
// @include https://readm.org/manga/
// @include https://readm.org/manga/*
// @include https://readm.org/category
// @include https://readm.org/category/
// @include https://readm.org/category/*
// @description Makes the thumbnails more visible by making them bigger, and the text selectable.
// @version 1.5.1.1
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle('.poster.poster-xs img { max-width: 150px !important; min-width: 150px !important; height: 212px !important; margin: 0 !important; }');
GM_addStyle('.latest-updates .poster.poster-xs { height: 212px !important; }');
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 33% !important; }');
GM_addStyle('.truncate { white-space: normal !important; }');
GM_addStyle('.ui.pagination.menu .item, .ui.menu .item { margin: 0 !important; padding 10px !important; }');
GM_addStyle('.poster.poster-xs a:link { color: #fff !important; }');
GM_addStyle('.poster.poster-xs a:visited { color: #d6d6d6 !important; }');
GM_addStyle('a:visited { color: #ddd !important; }');
window.onload = function() {
var lnks = document.querySelectorAll('.poster-xs a');
console.log(lnks);
for (var k = 0; k < lnks.length; k++) {
if(!(lnks[k].href.includes("/all-pages"))){
lnks[k].href = lnks[k].href + "/all-pages";
}
}
var lnks2 = document.querySelectorAll('.lazy-wide');
for (var h = 0; h < lnks2.length; h++) {
//console.log(lnks2[h].src);
//lnks2[h].src=(lnks2[h].src).replace("_30x0","_198x0");
lnks2[h].setAttribute('data-src', (lnks2[h].getAttribute('data-src')).replace("_30x0","_198x0"));
//console.log(lnks2[h].src);
//console.log(lnks2[h].getAttribute('data-src'));
}
console.log(lnks2);
}
GM_addStyle('.click-right.pageskin-click-div, .click-left.pageskin-click-div { display:none !important; }');
GM_addStyle('body { background: url() #111216 !important; }');
GM_addStyle('* { -webkit-touch-callout: text !important; -webkit-user-select: text !important; -khtml-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important; }');
GM_addStyle ( `
* {
-moz-user-select: text !important;
user-select: text !important;
-webkit-user-select: text !important;
}
` );