vivsiepop
This commit is contained in:
parent
be0102da53
commit
0fbfbb2638
2 changed files with 29 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: none;
|
border: none;
|
||||||
|
margin: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.musicdiv {
|
.musicdiv {
|
||||||
|
|
27
src/App.tsx
27
src/App.tsx
|
@ -6,6 +6,30 @@ import Reviews from './components/api.tsx';
|
||||||
import Music, { MusicEntry } from './components/music.tsx';
|
import Music, { MusicEntry } from './components/music.tsx';
|
||||||
export const [shouldpopup, setpopup] = createSignal(false)
|
export const [shouldpopup, setpopup] = createSignal(false)
|
||||||
export const [ishover, setishover] = createSignal(false)
|
export const [ishover, setishover] = createSignal(false)
|
||||||
|
|
||||||
|
function getRandomVivsieWord(){
|
||||||
|
const words = [
|
||||||
|
"fuck",
|
||||||
|
"shit",
|
||||||
|
"pussy",
|
||||||
|
"penis",
|
||||||
|
"dick"
|
||||||
|
]
|
||||||
|
return words[Math.floor(Math.random() * words.length)]
|
||||||
|
}
|
||||||
|
|
||||||
|
function vivsiepop() {
|
||||||
|
const blep = document.body.childNodes;
|
||||||
|
function fuckshit(node: ChildNode) {
|
||||||
|
if (node.nodeType === Node.TEXT_NODE) {
|
||||||
|
node.textContent = getRandomVivsieWord();
|
||||||
|
} else {
|
||||||
|
node.childNodes.forEach(fuckshit);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
blep.forEach(fuckshit)
|
||||||
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
function remov() {
|
function remov() {
|
||||||
for (let i = 0; i < document.styleSheets.length; i++) {
|
for (let i = 0; i < document.styleSheets.length; i++) {
|
||||||
|
@ -96,6 +120,9 @@ function App() {
|
||||||
"max-width": "1.5em"
|
"max-width": "1.5em"
|
||||||
}} src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f525.png" />
|
}} src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f525.png" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="musicbutton" onclick={vivsiepop}>
|
||||||
|
<p>echo if it was written by vivsiepop</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AdvancedBr count={3} />
|
<AdvancedBr count={3} />
|
||||||
<Music shouldpopup={shouldpopup}>
|
<Music shouldpopup={shouldpopup}>
|
||||||
|
|
Loading…
Reference in a new issue