页面抖动(恶搞好友)
网址代码
javascript:(function(){setInterval(function(){document.body.style.transform=‘translate(’+(Math.random()*1000-10)+‘px,’+(Math.random()*100-10)+‘px)’},1)})();
效果:整个页面不停小幅抖动,刷新页面恢复。
页面翻转/倒立
网址代码
javascript:(function(){document.body.style.transform=‘rotate(180deg)‘;document.body.style.transition=‘0.5s’})();
效果:网页180度倒置,再点一次无效,刷新复原。
彩色闪屏(炫酷光效)
javascript:(function(){var c=[‘red’,‘orange’,‘yellow’,‘green’,‘blue’,‘purple’],i=0;setInterval(function(){document.body.style.background=c[i++%c.length]},100)})();
效果:背景快速切换彩虹色,适合玩梗。
文字放大暴走
javascript:(function(){var s=document.getElementsByTagName(’*’);for(var i=0;i<s.length;i++)s[i].style.fontSize=‘30px’})();
效果:页面所有文字瞬间变大,视觉冲击拉满。
一键解除网页复制限制
很多网站禁止选中文本、复制,这个书签秒解锁:
javascript:(function(){document.oncontextmenu=null;document.onselectstart=null;document.body.oncopy=null;document.body.oncut=null;document.body.onpaste=null;var s=document.querySelectorAll(’*’);for(var i=0;i<s.length;i++){s[i].style.userSelect=‘auto’;s[i].oncontextmenu=null;s[i].onselectstart=null}})();
用途:复制文库、小说、资讯站的禁止复制内容。
网页变黑白(护眼/复古)
javascript:(function(){document.documentElement.style.filter=‘grayscale(100%)’})();
一键把整个网页转为黑白,再次点击无效,刷新恢复。
快速翻译当前页面(调用谷歌翻译)
javascript:(function(){window.open(‘https://translate.google.com/translate?sl=auto&tl=zh-CN&u=‘+location.href)})();
点击新开标签,自动翻译当前网页。
经典贪吃蛇(页面内嵌)
javascript:(function(){s=document.createElement(‘script’);s.src=‘https://cdn.jsdelivr.net/gh/yvonneyu/snake-bookmarklet/snake.js’;document.body.appendChild(s)})();
点击后在网页顶部出现贪吃蛇,方向键操控,摸鱼神器。
打砖块小游戏
javascript:(function(){a=document.createElement(“iframe”);a.src=“https://www.2048game.com/breakout/“;a.style.position=“fixed”;a.style.top=“0”;a.style.left=“0”;a.style.width=“100vw”;a.style.height=“100vh”;a.style.zIndex=“99999”;document.body.appendChild(a)})();
页面元素随意删(恶搞神器)
javascript:(function(){document.addEventListener(‘click’,function(e){e.target.remove()},true)})();
点完后,点哪里删哪里(文字、图片、按钮都能删),刷新恢复。
网页变“赛博朋克”风
javascript:(function(){document.body.style.filter=‘hue-rotate(180deg) contrast(1.5) brightness(1.2)’})();
一键高饱和霓虹色调,超有内味。
文字乱飘(粒子效果)
javascript:(function(){var txt=document.body.innerText;document.body.innerHTML=”;var i=0;setInterval(function(){var s=document.createElement(‘span’);s.innerText=txt[i++%txt.length];s.style.position=‘absolute’;s.style.left=Math.random()*100+’%‘;s.style.top=Math.random()*100+’%‘;s.style.fontSize=Math.random()*20+10+‘px’;document.body.appendChild(s)},30)})();
整页文字四散乱飞,超炫酷。
一键生成当前页二维码
javascript:(function(){var u=encodeURIComponent(location.href);window.open(‘https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=‘+u)})();
手机扫码快速传链接,超方便。
网页直接编辑(改文字/改数据)
javascript:document.body.contentEditable=‘true’;document.designMode=‘on’;void 0;
点一下,网页所有文字都能直接改,截图造假、改数字演示超好用。
一键净化链接(去掉烦人的追踪参数)
javascript:(function(){window.location.href=location.origin+location.pathname})();
把 ?utm_source=xxx 这类尾巴全删掉,链接变短更干净。
一键深色模式(强力黑)
javascript:(function(){var s=document.createElement(‘style’);s.textContent=‘html{filter:invert(1) hue-rotate(180deg)}img,video{filter:invert(1) hue-rotate(180deg)}‘;document.head.appendChild(s)})();
反转颜色,几乎所有网站秒变深色。
2048(页面内嵌)
javascript:(function(){var i=document.createElement(‘iframe’);i.src=‘https://play2048.co/‘;i.style=‘position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:99999’;document.body.appendChild(i)})();
经典俄罗斯方块
javascript:(function(){var i=document.createElement(‘iframe’);i.src=‘https://tetris.com/play-tetris’;i.style=‘position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:99999’;document.body.appendChild(i)})();