| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!DOCTYPE html>
- <html language="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="description" content="Birdsite->bird.makeup URL converter">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta property="og:title" content="Bird2Makeup">
- <meta property="og:type" content="website">
- <meta property="og:description" content="Birdsite->bird.makeup URL converter">
- <meta property="og:url" content="https://nandn.org.il/bird2makeup.html">
- <meta property="og:image" content="https://nandn.org.il/bird2makeup.png">
-
- <title>Bird2Makeup</title>
- </head>
- <body>
- <div class="container">
- <h1><img src="bird2makeup.png" style="width:1.5em" />Bird2Makeup</h1>
- <input id="in" autofocus style="width:80%" placeholder="Example: https://x.com/realDonaldTrump/status/2028505632123326484" />
- <button readonly onclick="bird2makeup()">Bird2Makeup</button>
- <input id="out" readonly style="width:80%" value="please enter a tweet URL above ^" />
- <ul>
- <li>Paste tweet URL into top field, and click button (or hit Enter)</li>
- <li>If it's a valid tweet URL, its equivalent <a target="_blank" href="https://bird.makeup">bird.makeup</a> URL would appear at the bottom field, and get copied into the clipboard</li>
- <li>Paste it into the search field of your mastodon page or app<em>(no guarantee such a toot exists at bird.makeup)</em></li>
- </ul>
- <p>This service is here simply because <a target="_blank" href="https://bird.makeup">bird.makeup</a> doesn't provide it.
- </div>
- <script>
- function bird2makeup() {
- try
- {
- let result = document.getElementById("in").value.match("https:\/\/[^/]*\/([^/*]*)\/status\/([^/]*)");
- document.getElementById("out").value = `https://bird.makeup/@${result[1]}/${result[2]}`;
- document.getElementById("out").select();
- navigator.clipboard.writeText(document.getElementById("out").value);
- } catch {
- document.getElementById("out").value = "please enter a VALID tweet URL above ^";
- document.getElementById("in").select();
- }
- }
- document.getElementById("in").addEventListener("keydown", (event) => {
- bird2makeup();
- });
- </script>
-
-
- </body>
- </html>
|