Greasy Fork 支持简体中文。

Better anitaku

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

  1. // ==UserScript==
  2. // @name Better anitaku
  3. // @namespace Violentmonkey Scripts
  4. // @match https://anitaku.pe/*
  5. // @exclude https://anitaku.pe/home.html
  6. // @grant none
  7. // @version 2.1
  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 2vw 0 2vw';
  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. }
  28.  
  29. // Shift ep selection above comments
  30. let comments = document.getElementsByClassName('anime_video_body_comment');
  31. let comments1 = comments[0];
  32.  
  33. let pane = document.getElementsByClassName('content_left');
  34. let pane1 = pane[0];
  35.  
  36. pane1.append(comments1);
  37.