Greasy Fork is available in English.
make qidian read with fullwidth
当前为
// ==UserScript==
// @name 起点pc阅读全屏
// @license Apache License 2.0
// @namespace https://www.52dzd.com/
// @version 0.9
// @description make qidian read with fullwidth
// @author xyfy
// @match https://read.qidian.com/chapter/*
// @match https://www.qidian.com/chapter/*
// @match https://vipreader.qidian.com/chapter/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=qidian.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
var oldContainer=document.getElementById("j-mainReadContainer");
if(oldContainer){
oldVersion();
}
else{
setTimeout(() =>dofit(), 2000)
}
function oldVersion(){
document.getElementById("j_chapterBox").style.width='100%';
document.getElementById("j-mainReadContainer").style.width='100%';
document.getElementById("j_readMainWrap").style.width='100%';
document.getElementById("j_leftBarList").style.left='0';
document.getElementById("j_leftBarList").style.marginLeft='0';
document.getElementById("j_rightBarList").style.right='0';
document.getElementById("j_rightBarList").style.marginRight='0';
var x = document.getElementsByClassName("guide-btn-wrap");
var i;
for (i = 0; i < x.length; i++) {
x[i].remove();
}
}
var isHidden = function(element) {
return (element.offsetParent === null);
};
function dofit(){
var left= document.getElementById("left-container");
//console.debug(left);
//left.remove();
var reader=document.getElementById("reader");
reader.style="--width: 90%; --side-width: 0px;";
var chapterlist= document.getElementById("chapter-list");
chapterlist.parentNode.style="width:1280px;display:none";
}
})();