Better anitaku layout

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

当前为 2024-09-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Better anitaku layout
  3. // @namespace Violentmonkey Scripts
  4. // @match https://anitaku.pe/*
  5. // @exclude https://anitaku.pe/home.html
  6. // @grant none
  7. // @version 1.0
  8. // @author -
  9. // @description 2024-09-14, 5:17:22 p.m.
  10. // @license GNU
  11. // ==/UserScript==
  12.  
  13. document.getElementById('wrapper_inside').style.margin = '0';
  14. document.getElementById('wrapper_inside').style.width = '100vw';
  15.  
  16. // Change properties of #wrapper
  17. document.getElementById('wrapper').style.backgroundColor = '#1b1b1b';
  18. document.getElementById('wrapper').style.float = 'left';
  19. document.getElementById('wrapper').style.width = '100vw';
  20. document.getElementById('wrapper').style.padding = '0 20px';
  21.  
  22. // Change properties of section.content section.content_left
  23. let contentLeft = document.querySelector('section.content section.content_left');
  24. if (contentLeft) {
  25. contentLeft.style.float = 'left';
  26. contentLeft.style.width = '80vw';
  27. }