Created
December 3, 2024 03:32
-
-
Save tylermorganwall/dcc6f41cb424b46ae398f4aa4d122ad5 to your computer and use it in GitHub Desktop.
Advent of Github Issues
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
javascript:(function(){const%20issues=document.querySelectorAll('.js-issue-row');if(!issues.length){alert('No%20issues%20found!');return;}document.body.innerHTML='';document.body.style.margin='0';document.body.style.padding='0';document.body.style.backgroundColor='#000';document.body.style.overflow='hidden';document.body.style.position='relative';document.documentElement.style.height='100%';document.body.style.height='100%';const%20createSnowflake=()=>{const%20flake=document.createElement('div');flake.style.position='absolute';flake.style.top='-10px';flake.style.left=Math.random()*100+'vw';const%20size=Math.random()*5+5;flake.style.width=size+'px';flake.style.height=size+'px';flake.style.backgroundColor='white';flake.style.borderRadius='50%';flake.style.opacity=Math.random()*0.5+0.5;flake.style.filter='blur(2px)';flake.style.zIndex='1000';const%20duration=Math.random()*5+5;flake.style.animation=`fall%20${duration}s%20linear%200s%20forwards`;document.body.appendChild(flake);setTimeout(()=>{flake.remove();},duration*1000);};setInterval(createSnowflake,200);const%20container=document.createElement('div');container.style.display='flex';container.style.flexWrap='wrap';container.style.justifyContent='center';container.style.marginTop='50px';container.style.position='relative';container.style.zIndex='10';document.body.appendChild(container);issues.forEach((issue,index)=>{const%20day=index+1;const%20link=issue.querySelector('.js-navigation-open').getAttribute('href');const%20title=issue.querySelector('.js-navigation-open').textContent.trim();const%20calendarDay=document.createElement('div');calendarDay.style.width='150px';calendarDay.style.height='150px';calendarDay.style.border='2px%20solid%20#ddd';calendarDay.style.margin='10px';calendarDay.style.textAlign='center';calendarDay.style.display='flex';calendarDay.style.flexDirection='column';calendarDay.style.justifyContent='center';calendarDay.style.alignItems='center';calendarDay.style.cursor='pointer';calendarDay.style.backgroundColor=index%2===0?'red':'green';calendarDay.style.fontFamily='Arial,%20sans-serif';calendarDay.style.boxShadow='2px%202px%205px%20rgba(0,0,0,0.2)';calendarDay.style.transition='transform%201s';calendarDay.style.transformStyle='preserve-3d';calendarDay.style.transformOrigin='left%20center';calendarDay.style.position='relative';calendarDay.style.color='#fff';const%20dayText=document.createElement('div');dayText.textContent=`Day%20${day}`;dayText.style.fontSize='20px';dayText.style.marginBottom='10px';dayText.style.fontWeight='bold';dayText.style.color='#fff';dayText.style.transition='opacity%200.5s,%20filter%200.5s';const%20titleText=document.createElement('div');titleText.textContent=title;titleText.style.fontSize='14px';titleText.style.color='#fff';titleText.style.display='none';titleText.style.position='absolute';titleText.style.top='50%';titleText.style.left='50%';titleText.style.transform='translate(-50%,%20-50%)';titleText.style.textAlign='center';titleText.style.width='100%';calendarDay.onmouseover=()=>{titleText.style.display='block';dayText.style.opacity='0.2';dayText.style.filter='blur(3px)';};calendarDay.onmouseout=()=>{titleText.style.display='none';dayText.style.opacity='1';dayText.style.filter='none';};calendarDay.onclick=()=>{calendarDay.style.transform='rotateY(-90deg)';setTimeout(()=>{const%20issueUrl=`https://github.com${link}`;window.open(issueUrl,'_blank');},500);};calendarDay.appendChild(dayText);calendarDay.appendChild(titleText);container.appendChild(calendarDay);});const%20createLights=()=>{const%20lightColors=['red','green','yellow','blue'];const%20lights=document.createElement('div');lights.style.position='fixed';lights.style.top='0';lights.style.left='0';lights.style.width='100%';lights.style.height='5px';lights.style.zIndex='1000';lights.style.display='flex';lights.style.justifyContent='space-between';for(let%20i=0;i<100;i++){const%20bulb=document.createElement('div');bulb.style.width='8px';bulb.style.height='8px';bulb.style.backgroundColor=lightColors[i%4];bulb.style.borderRadius='50%';bulb.style.boxShadow=`0%200%2010px%20${lightColors[i%4]}`;bulb.style.animation=`blink%20${Math.random()+1}s%20infinite%20alternate`;lights.appendChild(bulb);}document.body.appendChild(lights);};createLights();const%20createSnowdrift=()=>{const%20snowdrift=document.createElement('div');snowdrift.style.position='absolute';snowdrift.style.bottom='0';snowdrift.style.left='0';snowdrift.style.width='100%';snowdrift.style.height='100px';snowdrift.style.background='transparent';const%20canvas=document.createElement('canvas');canvas.width=window.innerWidth;canvas.height=100;const%20ctx=canvas.getContext('2d');ctx.fillStyle='white';ctx.beginPath();ctx.moveTo(0,50);for(let%20x=0;x<=canvas.width;x+=20){const%20y=50+Math.sin(x/50)*20+Math.random()*10;ctx.lineTo(x,y);}ctx.lineTo(canvas.width,canvas.height);ctx.lineTo(0,canvas.height);ctx.closePath();ctx.fill();snowdrift.appendChild(canvas);document.body.appendChild(snowdrift);};createSnowdrift();const%20style=document.createElement('style');style.textContent=`@keyframes%20fall{0%{transform:translateY(-10px);}100%{transform:translateY(110vh);opacity:0;}}@keyframes%20blink{to{opacity:0;}}`;document.head.appendChild(style);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment