Created
November 17, 2025 14:05
-
-
Save pwright/49ae5effda5fb4912370600a27b11ef6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(){try{var rawLink=document.querySelector('a[href*="/raw/"]');if(!rawLink){alert('Raw link not found on this page.');return;}var u=new URL(rawLink.href);var parts=u.pathname.split('/').filter(Boolean);if(parts.length<4){window.open(rawLink.href,'_blank');return;}var user=parts[0];var gistId=parts[1];var filename=parts.slice(4).join('/');var latest='https://gist.githubusercontent.com/'+user+'/'+gistId+'/raw/'+filename;console.log('Latest raw URL:',latest);if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(latest).then(function(){alert('Copied latest raw URL:\n'+latest);},function(){window.prompt('Latest raw URL (copy manually):',latest);});}else{window.prompt('Latest raw URL (copy manually):',latest);}}catch(e){console.error(e);alert('Failed: '+e);}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment