acongm
在线工具

书签脚本

回到顶部

只支持窗口滚动,不支持内联滚动

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

<a href="javascript:void(function(){document.scrollingElement.scrollIntoView({behavior:'smooth'})})()">回到顶部</a>

显示密码

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

<a href="javascript:void(function(){document.querySelectorAll('input[type=password]').forEach(function(dom){dom.setAttribute('type','text')})})()">显示密码</a>

On this page