Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
BaconSpaces authored Oct 5, 2024
1 parent 6c72b25 commit ef748fa
Showing 1 changed file with 48 additions and 18 deletions.
66 changes: 48 additions & 18 deletions x/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,49 @@
<title>Post URL Fixer</title>
<!-- Primary Meta Tags -->
<meta name="title" content="Post Fix URL" />
<meta name="description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com, and this tool will replace them:
<meta name="description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com or youtube.com or clips.twitch.tv or reddit.com or threads.net, and this tool will replace them:
x.com ➜ fixupx.com
twitter.com ➜ fxtwitter.com
tiktok.com ➜ tnktok.com
instagram.com ➜ ddinstagram.com
youtube.com ➜ yt.cdn.13373333.one
clips.twitch.tv ➜ clips.fxtwitch.tv
reddit.com ➜ redditez.com
threads.net ➜ fixthreads.net
" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://baconspaces.github.io/x/" />
<meta property="og:title" content="Post Fix URL" />
<meta property="og:description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com, and this tool will replace them:
<meta property="og:description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com or youtube.com or clips.twitch.tv or reddit.com or threads.net, and this tool will replace them:
x.com ➜ fixupx.com
twitter.com ➜ fxtwitter.com
tiktok.com ➜ tnktok.com
instagram.com ➜ ddinstagram.com
youtube.com ➜ yt.cdn.13373333.one
clips.twitch.tv ➜ clips.fxtwitch.tv
reddit.com ➜ redditez.com
threads.net ➜ fixthreads.net
" />
<meta property="og:image" content="https://i.vgy.me/r3OBLz.png" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://baconspaces.github.io/x/" />
<meta property="twitter:title" content="Post Fix URL" />
<meta property="twitter:description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com, and this tool will replace them:
<meta property="twitter:description" content="Paste a post with links to x.com or twitter.com or tiktok.com or instagram.com or youtube.com or clips.twitch.tv or reddit.com or threads.net, and this tool will replace them:
x.com ➜ fixupx.com
twitter.com ➜ fxtwitter.com
tiktok.com ➜ tnktok.com
instagram.com ➜ ddinstagram.com
youtube.com ➜ yt.cdn.13373333.one
clips.twitch.tv ➜ clips.fxtwitch.tv
reddit.com ➜ redditez.com
threads.net ➜ fixthreads.net
" />

<!-- Include Simple Notify JavaScript and CSS -->
Expand Down Expand Up @@ -86,12 +99,18 @@
<body>

<h2>Post URL Fixer</h2>
<p>Paste a post with links to <strong><i class="fa-brands fa-x-twitter"></i></strong> or <strong><i class="fa-brands fa-twitter" style="color: #74C0FC;"></i></strong> or <strong><i class="fa-brands fa-tiktok"></i></strong> or <strong><i class="fa-brands fa-instagram" style="color: #ff0069;"></i></strong>, and this tool will replace them:</p>
<p>Paste a post with links to <strong><i class="fa-brands fa-x-twitter"></i></strong> or <strong><i class="fa-brands fa-twitter" style="color: #74C0FC;"></i></strong> or <strong><i class="fa-brands fa-tiktok"></i></strong> or <strong><i class="fa-brands fa-instagram" style="color: #ff0069;"></i></strong> or <strong><i class="fa-brands fa-youtube" style="color: #ff0000;"></i></strong> or <strong><i class="fa-brands fa-twitch" style="color: #6441a5;"></i></strong> or <strong><i class="fa-brands fa-reddit" style="color: #FF4500;"></i></strong> or <strong><i class="fa-brands fa-threads" style="color: white;"></i></strong>, and this tool will replace them:</p>


<ul>
<li><strong>x.com</strong><strong>fixupx.com</strong></li>
<li><strong>twitter.com</strong><strong>fxtwitter.com</strong></li>
<li><strong>tiktok.com</strong><strong>tnktok.com</strong></li>
<li><strong>instagram.com</strong><strong>ddinstagram.com</strong></li>
<li><strong>youtube.com</strong><strong>t.cdn.13373333.one</strong></li>
<li><strong>clips.twitch.tv</strong><strong>clips.fxtwitch.tv</strong></li>
<li><strong>reddit.com</strong><strong>redditez.com</strong></li>
<li><strong>threads.net</strong><strong>fixthreads.net</strong></li>
</ul>

<textarea id="tweetInput" placeholder="Paste your post here"></textarea>
Expand All @@ -100,22 +119,33 @@ <h2>Post URL Fixer</h2>
<button class="clear-button" onclick="clearFields()">Clear</button>

<p><strong>Fixed Post:</strong></p>
<textarea id="result" readonly></textarea>
<textarea id="result" placeholder="Get your post here" readonly></textarea>

<script>
function fixTweet() {
const input = document.getElementById('tweetInput').value;
const result = document.getElementById('result');

// Replace links
const fixedTweet = input
.replace(/https:\/\/x\.com/g, "https://fixupx.com") // Replace x.com
.replace(/https:\/\/twitter\.com/g, "https://fxtwitter.com") // Replace twitter.com
.replace(/https:\/\/www\.instagram\.com\/([\w\/-]+)/g, "https://ddinstagram.com/$1") // Replace all instagram.com links
.replace(/https:\/\/www\.tiktok\.com\/(@[\w-]+)\/video\/(\d+)/g, "https://tnktok.com/$1/video/$2"); // Replace tiktok.com

result.value = fixedTweet; // Only show the fixed post
}


function fixTweet() {
const input = document.getElementById('tweetInput').value;
const result = document.getElementById('result');

// Replace links
const fixedTweet = input
.replace(/https:\/\/x\.com/g, "https://fixupx.com") // Replace x.com
.replace(/https:\/\/twitter\.com/g, "https://fxtwitter.com") // Replace twitter.com
.replace(/https:\/\/(www\.)?instagram\.com\/([\w\/-]+)/g, "https://ddinstagram.com/$2") // Replace all instagram.com links
.replace(/https:\/\/(www\.)?youtube\.com\/shorts\/([\w-]+)/g, "https://yt.cdn.13373333.one/shorts/$2") // Replace YouTube shorts
.replace(/https:\/\/(www\.)?youtube\.com\/watch\?v=([\w-]+)/g, "https://yt.cdn.13373333.one/watch?v=$2") // Replace YouTube watch links
.replace(/https:\/\/youtu\.be\/([\w-]+)/g, "https://yt.cdn.13373333.one/$1") // Replace youtu.be links
.replace(/https:\/\/clips\.twitch\.tv\/([\w-]+)/g, "https://clips.fxtwitch.tv/$1") // Replace clips.twitch.tv links
.replace(/https:\/\/(www\.)?reddit\.com\/([\w\/-]+)/g, "https://redditez.com/$2") // Replace reddit.com links
.replace(/https:\/\/(www\.)?threads\.net\/([\w\/-]+)/g, "https://www.fixthreads.net/$2") // Replace threads.net links
.replace(/https:\/\/(www\.)?threads\.net\/@([\w-]+)\/post\/([\w-]+)/g, "https://www.fixthreads.net/@$2/post/$3"); // Replace specific threads.net post links

result.value = fixedTweet; // Only show the fixed post
}




function copyToClipboard() {
const resultText = document.getElementById('result');
Expand Down

0 comments on commit ef748fa

Please sign in to comment.