Skip to content

📍 书签脚本

直接拖到标签栏

⬆️ 回到顶部

javascript
javascript: void (function () {
  document.scrollingElement.scrollIntoView({ behavior: 'smooth' })
})()

回到顶部

👀 显示密码

javascript
javascript: void (function () {
  document.querySelectorAll('input[type=password]').forEach(function (dom) {
    dom.setAttribute('type', 'text')
  })
})()

显示密码

🔍 解除禁止复制/右键

javascript
javascript: void (function () {
  document.oncontextmenu = null
  document.onselectstart = null
  document.oncopy = null
  document.oncut = null
  document.onpaste = null
  document.body.style.userSelect = 'auto'
  document.querySelectorAll('*').forEach(function (e) {
    e.style.userSelect = 'auto'
    e.style.webkitUserSelect = 'auto'
    e.oncontextmenu = null
  })
  alert('✅ 已解除限制,可以复制和右键了')
})()

解除复制限制

javascript
javascript: void (function () {
  alert(document.cookie || '🍪 没有 Cookie')
})()

查看 Cookie

🌐 查看所有 Local Storage

javascript
javascript: void (function () {
  let r = ''
  for (let i = 0; i < localStorage.length; i++) {
    const k = localStorage.key(i)
    r += k + ' = ' + localStorage.getItem(k) + '\n'
  }
  alert(r || '📦 无 Local Storage 数据')
})()

查看 Local Storage

🌓 开启暗黑模式(强制)

javascript
javascript: void (function () {
  const d = document.createElement('style')
  d.textContent =
    'html{filter:invert(1) hue-rotate(180deg)!important;}img,video,canvas,[style*="background-image"]{filter:invert(1)hue-rotate(180deg)!important;}'
  document.head.appendChild(d)
})()

强制暗黑模式

Released under the MIT License.