Better anitaku layout

2024-09-14, 5:17:22 p.m.

目前為 2024-09-14 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Better anitaku layout
// @namespace   Violentmonkey Scripts
// @match       https://anitaku.pe/*
// @exclude     https://anitaku.pe/home.html
// @grant       none
// @version     1.0
// @author      -
// @description 2024-09-14, 5:17:22 p.m.
// @license GNU
// ==/UserScript==

document.getElementById('wrapper_inside').style.margin = '0';
document.getElementById('wrapper_inside').style.width = '100vw';

// Change properties of #wrapper
document.getElementById('wrapper').style.backgroundColor = '#1b1b1b';
document.getElementById('wrapper').style.float = 'left';
document.getElementById('wrapper').style.width = '100vw';
document.getElementById('wrapper').style.padding = '0 20px';

// Change properties of section.content section.content_left
let contentLeft = document.querySelector('section.content section.content_left');
if (contentLeft) {
    contentLeft.style.float = 'left';
    contentLeft.style.width = '80vw';
}