「Keylines」一个 Chrome 插件,辅助前端页面开发,随机颜色显示 DOM 边界。

2019 年 3 月 6 日
 unizheng

https://chrome.google.com/webstore/detail/keylines/akdpglnbllgdimcgmhknebpekooejiai?hl=zh-CN

3969 次点击
所在节点    分享创造
12 条回复
quietjosen
2019 年 3 月 6 日
截图展示啥的,还是要的。
MyFaith
2019 年 3 月 6 日
iframe 内无效
solobat
2019 年 3 月 6 日
如果只是这个功能的话,用油猴脚本就行了
HFX3389
2019 年 3 月 6 日
@solobat #3 哪个脚本,大佬给个地址
journey0ad
2019 年 3 月 6 日
javascript:!document.querySelector('style#ghost')&&(document.body.innerHTML+='<style id="ghost">html.ghost *{background:#000 !important;color:#0f0 !important;outline:solid #f00 1px !important;}</style>');document.documentElement.classList.toggle('ghost');

加为书签
rabbbit
2019 年 3 月 6 日
javascript:const getRandomColor =() => { let letters = '0123456789ABCDEF';let color = '#';for (let i = 0; i < 6; i++) {color += letters[Math.floor(Math.random() * 16)];}return color;};Array.from(document.all).forEach(el => el.style.outline = `1px solid ${getRandomColor()}`)
mengkun
2019 年 3 月 7 日
javascript: [].forEach.call($("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
unizheng
2019 年 3 月 7 日
@mengkun 就是这段脚本的封装 :)
unizheng
2019 年 3 月 7 日
@MyFaith 妈蛋 没想到
Baymaxbowen
2019 年 3 月 7 日
控制台会报错
unizheng
2019 年 3 月 7 日
@MyFaith 修复掉了 请等 0.0.3 版本。Chrome 商店正在审核。
unizheng
2019 年 3 月 7 日
@Baymaxbowen 请问报什么错呢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/541819

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX