More space for titles on hianime.to

Adds a custom CSS style to the anime list elements.

  1. // ==UserScript==
  2. // @name More space for titles on hianime.to
  3. // @namespace Violentmonkey Scripts
  4. // @match https://hianime.to/*
  5. // @grant none
  6. // @version 1.0
  7. // @author Kozinc
  8. // @license MIT
  9. // @description Adds a custom CSS style to the anime list elements.
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Create a new style element
  16. const style = document.createElement('style');
  17. style.type = 'text/css';
  18. style.innerHTML = `
  19. .film_list .film_list-wrap .flw-item .film-detail .film-name {
  20. -webkit-line-clamp: 5 !important;
  21. }
  22. `;
  23.  
  24. // Append the style element to the head of the document
  25. document.head.appendChild(style);
  26. })();

QingJ © 2025

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