aicu体验优化

优化aicu

  1. // ==UserScript==
  2. // @name aicu体验优化
  3. // @namespace https://www.aicu.cc/
  4. // @version 1.1
  5. // @description 优化aicu
  6. // @author Darknights
  7. // @match *.aicu.cc/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=aicu.cc
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. 'use strict';
  14.  
  15. setInterval(function () {
  16. const content = document.querySelector("#content");
  17. if (content) {
  18. content.style.display = 'flex';
  19. content.style.flexWrap = 'wrap';
  20. content.style.width = '70%';
  21. content.style.marginLeft = '15%';
  22. }
  23.  
  24. const cards = document.querySelectorAll("#content > .card");
  25. for (const card of cards) {
  26. card.style.width = '30%';
  27. card.style.maxWidth = 'auto';
  28. card.style.minWidth = '400px';
  29. }
  30. }, 500);
  31.  
  32. function removeBackground() {
  33. document.body.style.backgroundImage = 'url("#")';
  34. document.body.style.backgroundColor = '#767d72';
  35. }
  36.  
  37. let rbId = setInterval(function () {
  38. if (location.search.split('&')[0].indexOf('uid') > -1) {
  39. clearInterval(rbId);
  40. return;
  41. }
  42. if (document.body.style.backgroundImage === 'url("#")') {
  43. clearInterval(rbId);
  44. return;
  45. }
  46. removeBackground();
  47. }, 10);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址