-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} */ |