问答 › 查看内容
返回列表

隐藏-页面更多-分享链接

24 1
发表于 昨天 18:11 | 查看全部 阅读模式
隐藏-页面更多-分享链接

评论1

观小豪楼主Lv.1 发表于 昨天 18:11 | 查看全部
插件代码:


  1. <div>(() => {
  2.   const styleId = 'gd-plugin-hide-page-share-link'

  3.   if (document.getElementById(styleId)) return

  4.   const style = document.createElement('style')
  5.   style.id = styleId
  6.   style.textContent = `
  7.     [data-test-id="PG.SHARE_LINK"] {
  8.       display: none !important;
  9.     }
  10.   `

  11.   ;(document.head || document.documentElement).appendChild(style)
  12. })()</div>
复制代码


回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

微信服务号
联系我们
电话:400-880-0750
邮箱:hello@guandata.com
Copyright © 2001-2026 观远社区 版权所有 All Rights Reserved. 浙 ICP 备15006424号-3
去回复 去发帖 返回顶部
快速回复 返回顶部 返回列表