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-2.0-only; http://www.gnu.org/licenses/gpl-2.0.txt
// @include https://readm.org/
// @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.5.1
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
/*GM_setValue(widemode,0);
GM_getValue(widemode,0);*/
GM_registerMenuCommand('Enable Wide Mode', function() {
GM_setValue(`widemode`,!GM_getValue(`widemode`,0));
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 33% !important; }');
GM_addStyle('#wrapper { max-width: 1280px !important; }');
if(GM_getValue(`widemode`,0)){
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 24% !important; }');
GM_addStyle('#wrapper { max-width: 1600px !important; }');
}
});
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 33% !important; }');
GM_addStyle('#wrapper { max-width: 1280px !important; }');
if(GM_getValue(`widemode`,0)){
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 24% !important; }');
GM_addStyle('#wrapper { max-width: 1600px !important; }');
}
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('.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; }');
GM_addStyle('.inner-content { padding-left:0 !important; padding-right:0 !important; }');
GM_addStyle('.mt-0, #series-tabs, .pb-0 { padding-left: 30px !important; padding-right: 30px !important; }');
GM_addStyle('li.item { padding: 0 !important; }');
GM_addStyle('li.item a { padding: .92857143em 1.14285714em; }');
GM_addStyle('podium-spot { display:none !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; }');
setTimeout(function() {
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 33% !important; }');
GM_addStyle('#wrapper { max-width: 1280px !important; }');
if(GM_getValue(`widemode`,0)){
GM_addStyle('.dark-segment>ul .segment-poster-sm { width: 24% !important; }');
GM_addStyle('#wrapper { max-width: 1600px !important; }');
}
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('.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; }');
GM_addStyle('.inner-content { padding-left:0 !important; padding-right:0 !important; }');
GM_addStyle('.mt-0, #series-tabs, .pb-0 { padding-left: 30px !important; padding-right: 30px !important; }');
//GM_addStyle('#material .scroll { overflow-y: auto; max-height: 30vh !important; }'); // MAL-Sync
GM_addStyle('podium-spot { display:none !important; }');
}, 5*1000); // 5 seconds will elapse and Code will execute.
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;
}
` );