const quotes = [ "Made with HTML!", "Giving you the tools to fight censorship since 2024.", "We are produdly anti-apartheid and anti-censorship", "It is during our darkest moments that we must focus to see the light.", "The way to get started is to quit talking and begin doing.", "Whenever you open the site on a new chromebook make sure to go to chrome://settings/content/popups and enable pop-ups for the bypass to work.", "We are a 11 person team. If you would like to join us then shoot us an email at allhands@edurocks.org", "From the river to the sea Palestine will be free!!! ", "EDUrocks proudly supports LGBTQIA+ Rights!!!", "EDUrocks proudly opposes ID age verification on the web!!!", "EDUrocks says trans and gay rights!!!", "Stand up for what you believe in regardless of what opposition you may face.", "EDUrocks exists out of a need not out of a want. Censorship is a poison to society that should be fought against.", "Be careful on your managed devices your Systems Admin can see everything you do. (unless you use our site)", "You learn more from failure than from success. Don't let it stop you. Failure builds character.", "It's not whether you get knocked down, it's whether you get up.", "We hope your friend gets better Lain. -Kyle and the EDUrocks team", "If you are working on something that you really care about, you don't have to be pushed. The vision pulls you.", "People who are crazy enough to think they can change the world, are the ones who do.", "Failure will never overtake me if my determination to succeed is strong enough.", "GoGuardian is by definition spyware.", "Israel is an apartheid state.", "We love all our users, they are what powers EDUrocks.", "EDUrocks lives and is served from servers in 6 continents across the world.", "EDUrocks has servers in the United States, Germany, China, Mexico, and Russia, and unlisted servers elsewhere.", "I don't have time to read Yaoi because i work on this site.", "This site is 100% supported by user donations.", "We are one of the only non-greedy game sites who does not run ADs. (well except on AWS Mirror)", "When looking for game sites make sure to ask for the real EDUrocks.", "We now have a TikTok. Click to follow.  ", "We proudly support human rights for everyone", "One of the few privacy respecting unblocked games sites.", "WE HAVE HIT 30K USERS Click to learn more. !!!!", "They tried to sue us and failed. Click to learn more. !!!!", "Try our new (and working) EDUrocks Chat. Click to check it out. !!!!", "You can get all the links to EDUrocks by emailing links@edurocks.org or links@blahaj.li, you will get an auto reply with all the links to EDUrocks and GN-Math", "Spell check done by Pop", "All the world will be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with the swift warning. Be cunning and full of tricks and your people shall never be destroyed. ― Richard Adams", "Thanks to okayunn for providing the EDUrocks US Server", "We got a 0/100 on our Code Audit, and a 100/100 on our Security Audit!!!", "To whoever asked me to add 'NU CARNIVAL' this game is so peak, i love it and i love the person who asked for it, sadly i can't add it to EDUrocks :(", "I BUILT THIS SITE ROCK BY ROCK AND NO SCHOOL ADMINS CAN MAKE ME STOP.", "X3 PREDICTOR GOT NOTHING ON US!!!", "Uhh yeah so we bypassed GoGuardian again, Censorship will never win or sum like that, Thanks to Tunnel Colt for the help.", "Yall should follow us insta @edurocksubg", "Unblocked at 9/10 Schools", "It's the owner of the site", "Did you know EDUrocks has been used in atleast one school in all 50 states?", "If the site is blocked or you want a game, you can call or text us at (404) 913-YAOI", "Join our discord. Click to follow.  ", "The Only UBG with a Twink Mascot, WE LOVE ROCKSI!!!", ]; // Cookie helper functions function setCookie(name, value, days) { const expires = new Date(); expires.setTime(expires.getTime() + (days * 24 * 60 * 60 * 1000)); document.cookie = name + '=' + value + ';expires=' + expires.toUTCString() + ';path=/'; } function getCookie(name) { const nameEQ = name + "="; const ca = document.cookie.split(';'); for(let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); } return null; } function getSeenQuotes() { const seenQuotes = getCookie('seenQuotes'); return seenQuotes ? JSON.parse(seenQuotes) : []; } function addSeenQuote(quoteIndex) { const seenQuotes = getSeenQuotes(); if (!seenQuotes.includes(quoteIndex)) { seenQuotes.push(quoteIndex); setCookie('seenQuotes', JSON.stringify(seenQuotes), 30); } } function clearSeenQuotes() { setCookie('seenQuotes', JSON.stringify([]), 30); } export function getRandomQuote() { const seenQuotes = getSeenQuotes(); const validQuotes = quotes.filter(quote => quote && quote.trim() !== ''); // If all quotes have been seen, reset if (seenQuotes.length >= validQuotes.length) { clearSeenQuotes(); const randomIndex = Math.floor(Math.random() * validQuotes.length); const selectedQuote = validQuotes[randomIndex]; const originalIndex = quotes.indexOf(selectedQuote); addSeenQuote(originalIndex); return selectedQuote; } // Get unseen quotes const unseenQuotes = []; validQuotes.forEach((quote) => { const originalIndex = quotes.indexOf(quote); if (!seenQuotes.includes(originalIndex)) { unseenQuotes.push({quote: quote, originalIndex: originalIndex}); } }); // Select random unseen quote const randomIndex = Math.floor(Math.random() * unseenQuotes.length); const selectedQuoteObj = unseenQuotes[randomIndex]; addSeenQuote(selectedQuoteObj.originalIndex); return selectedQuoteObj.quote; } export function displayQuote(elementId = 'quote-text') { const quote = getRandomQuote(); const quoteElement = document.getElementById(elementId); if (quoteElement) { quoteElement.innerHTML = quote; } } // Auto-display on load if element exists if (typeof document !== 'undefined') { document.addEventListener('DOMContentLoaded', () => { if (document.getElementById('quote-text')) { displayQuote(); } }); }