Automatically bypasses rs.bily.cc link shortener by decoding the URL
Size
2.7 KB
Version
1.0.1
Created
Oct 25, 2025
Updated
20 days ago
1// ==UserScript==
2// @name RS Bily Link Shortener Bypasser
3// @description Automatically bypasses rs.bily.cc link shortener by decoding the URL
4// @version 1.0.1
5// @match https://*.rs.bily.cc/*
6// @icon https://rs.bily.cc/img/icon.png
7// @grant GM.openInTab
8// ==/UserScript==
9(function() {
10 'use strict';
11
12 console.log('RS Bily Bypasser: Script started');
13
14 async function bypassShortener() {
15 try {
16 // Get the hash from the URL (after the #)
17 const hash = window.location.hash.substring(1);
18
19 if (!hash) {
20 console.error('RS Bily Bypasser: No hash found in URL');
21 return;
22 }
23
24 console.log('RS Bily Bypasser: Hash found:', hash);
25
26 // Decode the hash twice (double Base64 encoding)
27 const decoded1 = atob(hash);
28 console.log('RS Bily Bypasser: First decode:', decoded1);
29
30 const finalUrl = atob(decoded1);
31 console.log('RS Bily Bypasser: Final URL:', finalUrl);
32
33 // Validate that we got a proper URL
34 if (finalUrl && (finalUrl.startsWith('http://') || finalUrl.startsWith('https://'))) {
35 console.log('RS Bily Bypasser: Redirecting to:', finalUrl);
36
37 // Show a message to the user
38 const messageDiv = document.createElement('div');
39 messageDiv.style.cssText = `
40 position: fixed;
41 top: 50%;
42 left: 50%;
43 transform: translate(-50%, -50%);
44 background: #4CAF50;
45 color: white;
46 padding: 20px 40px;
47 border-radius: 10px;
48 font-size: 18px;
49 font-weight: bold;
50 z-index: 999999;
51 box-shadow: 0 4px 6px rgba(0,0,0,0.3);
52 text-align: center;
53 `;
54 messageDiv.textContent = 'Bypassing link shortener... Redirecting now!';
55 document.body.appendChild(messageDiv);
56
57 // Redirect after a short delay
58 setTimeout(() => {
59 window.location.href = finalUrl;
60 }, 1000);
61 } else {
62 console.error('RS Bily Bypasser: Invalid URL after decoding:', finalUrl);
63 }
64 } catch (error) {
65 console.error('RS Bily Bypasser: Error decoding URL:', error);
66 }
67 }
68
69 // Run the bypass function when the page loads
70 if (document.readyState === 'loading') {
71 document.addEventListener('DOMContentLoaded', bypassShortener);
72 } else {
73 bypassShortener();
74 }
75})();