暴力猴 双击页面弹出导航栏 本页打开 - chrome 插件脚本
// ==UserScript==
// @name 双击页面嵌入leftRight
// @namespace Violentmonkey Scripts
// @match https://*/*
// @exclude https://reciter.codeberg.page/docs/*
// @grant none
// @version 1.0
// @author -
// @description 2025/1/26 13:43:40
// ==/UserScript==
(function() {
'use strict';
var list = `
<a href="https://kimi.moonshot.cn/">KIMI</a>
<a href="https://www.baidu.com">baidu.com</a>
<a href="chrome-extension://jinjaccalgkegednnccohejagnlnfdag/options/index.html#scripts/4" target="_blank">编辑(Ctrl+L)</a>
`;
var style = document.createElement('style');
document.head.appendChild(style);
style.sheet.insertRule(`
#idPopup {
text-align: left;
z-index: 99999;
padding: 10px;
display: none;
background-color: #3c3c3c;
border: 1px solid #cdcdcd;
position: fixed;
width: 80%;
height: 50%;
left: 10%;
top: 15%;
}
`, style.sheet.cssRules.length);
style.sheet.insertRule(`
#idPopup a {
font-size: 16px;
color: #cdcdcd;
padding: 10px;
}
`, style.sheet.cssRules.length);
style.sheet.insertRule(`
#idPopup a:hover {
color: #57a3f3;
}
`, style.sheet.cssRules.length);
var idPopup = document.createElement('div');
idPopup.id = 'idPopup';
idPopup.innerHTML = list;
document.body.appendChild(idPopup);
document.body.addEventListener('dblclick', function() {
var display = idPopup.style.display;
idPopup.style.display = display === 'block' ? 'none' : 'block';
});
// document.body.addEventListener('dblclick', function() {
// document.location.href = "http://127.0.0.1:12301/"
// });
})();
---------------------------------------------
生活的意义就是你自己知道你要做什么,明确目标。没有目标,后面都是瞎扯!
https://pengchenggang.gitee.io/navigator/
SMART原则:
目标必须是具体的(Specific)
目标必须是可以衡量的(Measurable)
目标必须是可以达到的(Attainable)
目标必须和其他目标具有相关性(Relevant)
目标必须具有明确的截止期限(Time-based)
生活的意义就是你自己知道你要做什么,明确目标。没有目标,后面都是瞎扯!
https://pengchenggang.gitee.io/navigator/
SMART原则:
目标必须是具体的(Specific)
目标必须是可以衡量的(Measurable)
目标必须是可以达到的(Attainable)
目标必须和其他目标具有相关性(Relevant)
目标必须具有明确的截止期限(Time-based)

浙公网安备 33010602011771号