网页样式格式化

一些网页的样式格式化

As of 12.12.2023. See ბოლო ვერსია.

// ==UserScript==
// @name         网页样式格式化
// @namespace    xywc-s
// @author       xywc-s
// @version      1.0.5
// @description  一些网页的样式格式化
// @match        https://*.2biqu.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=spankbang.com
// @grant        GM_getResourceText
// @grant        GM_addStyle
// @grant        GM_setValue
// @grant        GM_getValue
// @require      https://unpkg.com/[email protected]/notyf.min.js
// @resource     NotifyCSS https://unpkg.com/[email protected]/notyf.min.css
// @license MIT
// ==/UserScript==
/*jshint esversion: 6 */

const {host} = location
switch(host){
  case 'www.2biqu.com': 
      biquFormat();
  break;
}

function biquFormat(){
    console.log('biqu')
    const searchForm = document.querySelector('.search-form')
    searchForm.style.margin = 0
    const layoutTit = document.querySelector('.layout-tit')
    layoutTit.style.backgroundColor = 'transparent'
    layoutTit.style.border = 'none'
    layoutTit.append(searchForm)
    document.querySelector('.layout').style.border = 'none'
    const header = document.querySelector('.header')
    header.append(layoutTit)
    header.style.width = 'auto'
    header.style.display = 'flex'
    header.style.justifyContent = 'center'
    document.querySelector('.reader-fun').margin = '0 12px'

}