Skip to content

Instantly share code, notes, and snippets.

@maique
Created February 4, 2025 16:44
Show Gist options
  • Save maique/83a25f06755686e5dd5c5ebfb31842bb to your computer and use it in GitHub Desktop.
Save maique/83a25f06755686e5dd5c5ebfb31842bb to your computer and use it in GitHub Desktop.
pika edit
javascript:(function() {
const url = new URL(window.location.href);
const match = url.pathname.match(/^\/posts\/(.+)$/);
if (match) {
const newUrl = `https://pika.page/posts/${match[1]}/edit`;
window.location.href = newUrl;
} else {
alert("This bookmarklet only woks on specific post URLs.");
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment