Skip to content

Commit

Permalink
chore:update README
Browse files Browse the repository at this point in the history
  • Loading branch information
eiis committed Sep 3, 2023
1 parent 0d8ea20 commit 51b579a
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 55 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app" class="dark:bg-slate-800 py-2 bg-white"></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build --watch",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

Binary file modified src/assets/fugui.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/vue.svg

This file was deleted.

90 changes: 45 additions & 45 deletions src/content-scripts/content-script.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
function appendDameModal() {
const modal = document.createElement("div");
modal.id = "dame-overlay"
modal.style.position = "fixed";
modal.style.top = "0";
modal.style.left = "0";
modal.style.width = "100vw";
modal.style.height = "100vh";
modal.style.backgroundColor = "rgba(0, 0, 0, 0.93)";
modal.style.boxShadow = "0 4px 30px rgba(0, 0, 0, 0.1)";
modal.style.backdropFilter = "blur(16px)";
modal.style.zIndex = "10000"
// function appendDameModal() {
// const modal = document.createElement("div");
// modal.id = "dame-overlay"
// modal.style.position = "fixed";
// modal.style.top = "0";
// modal.style.left = "0";
// modal.style.width = "100vw";
// modal.style.height = "100vh";
// modal.style.backgroundColor = "rgba(0, 0, 0, 0.93)";
// modal.style.boxShadow = "0 4px 30px rgba(0, 0, 0, 0.1)";
// modal.style.backdropFilter = "blur(16px)";
// modal.style.zIndex = "10000"

const imageUrl = chrome.runtime.getURL("icons/fugui.png")
modal.innerHTML = `
<div id="dame-overlay-content" style="
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
">
<img src=${imageUrl}></img>
</div>
`
document.body.appendChild(modal);
dameModalAppended = true;
}
// const imageUrl = chrome.runtime.getURL("icons/fugui.png")
// modal.innerHTML = `
// <div id="dame-overlay-content" style="
// display: flex;
// align-items: center;
// justify-content: center;
// height: 100%;
// width: 100%;
// ">
// <img src=${imageUrl}></img>
// </div>
// `
// document.body.appendChild(modal);
// dameModalAppended = true;
// }

let dameModalAppended = false;
// let dameModalAppended = false;

async function checker() {
// if current minute is in 25-30 or in 55-60
const currentMinute = new Date().getMinutes();
if ((currentMinute >= 25 && currentMinute <= 30) || (currentMinute >= 55 && currentMinute <= 60)) {
return;
}
// async function checker() {
// // if current minute is in 25-30 or in 55-60
// const currentMinute = new Date().getMinutes();
// if ((currentMinute >= 25 && currentMinute <= 30) || (currentMinute >= 55 && currentMinute <= 60)) {
// return;
// }

// if current tab is twitter or youtube
// if (document.URL.includes("https://twitter.com") || document.URL.includes("https://youtube.com") || document.URL.includes("https://www.youtube.com")) {
// if (!dameModalAppended) {
// appendDameModal();
// }
// }
}
// // if current tab is twitter or youtube
// // if (document.URL.includes("https://twitter.com") || document.URL.includes("https://youtube.com") || document.URL.includes("https://www.youtube.com")) {
// // if (!dameModalAppended) {
// // appendDameModal();
// // }
// // }
// }

async function main() {
setInterval(checker, 1000)
}
// async function main() {
// setInterval(checker, 1000)
// }

main();
// main();
5 changes: 0 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* .dark {
background: rgba(15, 23, 42);
color-scheme: dark;
} */

0 comments on commit 51b579a

Please sign in to comment.