Skip to content

Instantly share code, notes, and snippets.

@perpil
Last active October 28, 2023 03:30
Show Gist options
  • Save perpil/4739c19ca34745840f52e94ff3d1b2ba to your computer and use it in GitHub Desktop.
Save perpil/4739c19ca34745840f52e94ff3d1b2ba to your computer and use it in GitHub Desktop.
Boing Boing comments link
<a class="bbs" href="" onclick="if(this.href==location.href){this.href='https://bbs.boingboing.net/t/'+/.*\/(.*)\.html$/.exec(location.pathname)[1];}"> COMMENTS </a>
@perpil
Copy link
Author

perpil commented Oct 28, 2023

This version will leave the link alone if it goes to the bbs, otherwise it will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment