This commit is contained in:
liushiwei
2023-10-07 15:30:41 +08:00
parent a2f2737741
commit b3804e9b13
11 changed files with 965 additions and 50 deletions

View File

@@ -1,25 +1,10 @@
// import {genAnti} from "@/api/genAnti";
// const popup = document.createElement("div")
// popup.innerText = "获取Anti"
// const styles = {
// position: "fixed",
// right: '10px',
// top: '60px',
// zIndex: 9999,
// padding: "8px",
// background: "#409EFF",
// color: "#fff",
// borderRadius: "8px",
// cursor: "pointer"
// }
// for (const e in styles) {
// popup.style[e] = styles[e]
// }
//
// popup.addEventListener('click', async () => {
// const anti = await genAnti.a()
// console.log(anti)
// })
// document.body.appendChild(popup)
function injectScript(file, node) {
var th = document.getElementsByTagName(node)[0];
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', file);
th.appendChild(s);
}
injectScript( chrome.runtime.getURL('/js/jszip.min.js'), 'body');
injectScript( chrome.runtime.getURL('/js/FileSaver.js'), 'body');
injectScript( chrome.runtime.getURL('/js/download.js'), 'body');