VNDB标签布局修正

中文化后会导致布局出现问题,修正浮动

  1. // ==UserScript==
  2. // @name VNDB标签布局修正
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.0
  5. // @description 中文化后会导致布局出现问题,修正浮动
  6. // @author aotmd
  7. // @match https://vndb.org/*
  8. // @noframes
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14.  
  15. addStyle(`
  16. .tagtree > li:nth-child(7n+1) {
  17. /* height: 120px; */
  18. clear: left;
  19. }
  20. `);
  21. //添加css样式
  22. function addStyle(rules) {
  23. let styleElement = document.createElement('style');
  24. styleElement["type"] = 'text/css';
  25. document.getElementsByTagName('head')[0].appendChild(styleElement);
  26. styleElement.appendChild(document.createTextNode(rules));
  27. }
  28. })();

QingJ © 2025

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