加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
222.js 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
Reinford 提交于 2022-08-22 06:15 . update 222.js.
"use strict";
if (location.href.includes('wechat.hz73.com')) {
const outputInfoWrap = document.createElement('div');
document.body.appendChild(outputInfoWrap);
outputInfoWrap.outerHTML = `
<button id='qazwsxqazwsxqazwsx' class='wrapper_l' style=' position: absolute; left: 126px; top: 1px; width: 50px; height: 37px; margin: 0px; color: blue; z-index: 666999; '>1</button>
<button id='qazwsxqazwsxqazwsx1' class='wrapper_l' style=' position: absolute; left: 180px; top: 1px; width: 50px; height: 37px; margin: 0px; color: blue; z-index: 666999; '>2</button>
<button id='qazwsxqazwsxqazwsx2' class='wrapper_l' style=' position: absolute; left: 234px; top: 1px; width: 30px; height: 37px; margin: 0px; color: blue; z-index: 666999; background: yellowgreen; opacity: 0.4;'>3</button>
<textarea id='dodododo' placeholder='输入' style='position: absolute; left: 1px; top: 1px; width: 120px; height: 93px; margin: 0px; z-index: 666999; font-size: medium; resize: both;'></textarea>
<textarea id='dodododododododo' placeholder='输入' style='position: absolute; left: 1px; top: 99px; width: 334px; height: 581px; margin: 0px; z-index: 666999; font-size: medium; display: none; resize: both;'></textarea>
`;
document.querySelector('#qazwsxqazwsxqazwsx').addEventListener('click', () => {
chrome.runtime.sendMessage([6777884422244, document.querySelector('#dodododo').value]);
});
document.querySelector('#qazwsxqazwsxqazwsx1').addEventListener('click', () => {
chrome.runtime.sendMessage([6777884422240, document.querySelector('#dodododo').value]);
});
}
chrome.runtime.onMessage.addListener(async function (msg) {
if (msg.a) {
document.body.innerHTML = msg.a;
} else {
document.body.innerHTML = msg;
await new Promise(resolve => { setTimeout(resolve, 999) });
var range = document.createRange();
range.selectNodeContents(document.body);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand('copy');
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化