modao-pin

墨刀菜单active定位居中!

当前为 2024-07-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name modao-pin
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-07-11
  5. // @description 墨刀菜单active定位居中!
  6. // @author You
  7. // @match https://modao.cc/app/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=modao.cc
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var itv = setInterval(()=>{
  16. if(document.querySelector('#workspace').children.length>0){
  17. document.querySelector('.rn-list-item.active').scrollIntoView({ behavior: "smooth", block:'center' })
  18. clearInterval(itv)
  19. }
  20. },500)
  21. })();

QingJ © 2025

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