\n
\n ';
// src/notify.ts
var BypassElement = class extends HTMLElement {
static get observedAttributes() {
return ["text", "title", "is-help"];
}
constructor() {
super();
const shadow = this.attachShadow({ mode: "open" });
const style = document.createElement("style");
style.textContent = notify_default;
const div = document.createElement("div");
div.innerHTML = notify_element_default;
shadow.appendChild(style);
shadow.appendChild(div);
shadow.getElementById("version").innerText = "11.0.6 (5c96a51)";
}
connectedCallback() {
this.updateContent();
}
attributeChangedCallback(name, oldValue, newValue) {
this.updateContent();
}
updateContent() {
const text = this.getAttribute("text") || "";
const title = this.getAttribute("title") || "";
const isHelp = this.hasAttribute("is-help");
if (isHelp) {
this.shadowRoot.getElementById("links").remove();
}
this.shadowRoot.getElementById("help").style.display = isHelp ? "block" : "none";
this.shadowRoot.querySelector("#title").textContent = title;
this.shadowRoot.querySelector("#text").textContent = text;
}
};
customElements.define("bypass-notification", BypassElement);
var notify = ({ text, title, isHelp }) => {
const titleContent = title || "Bypass in progress...";
const textContent = text || "Please wait while we redirect you";
const notificationElement = document.createElement("bypass-notification");
notificationElement.setAttribute("title", titleContent);
notificationElement.setAttribute("text", textContent);
if (isHelp) {
notificationElement.setAttribute("is-help", "true");
}
document.body.appendChild(notificationElement);
};
// src/fetch.ts
var jsonFetch = async (url, options) => {
return new Promise((resolve, reject) => {
GM_xmlhttpRequest({
method: options.method,
data: options.data ? JSON.stringify(options.data) : void 0,
headers: options.headers,
url,
onload: (response) => {
if (response.responseText && typeof response.responseText === "string") {
try {
const data = JSON.parse(response.responseText);
resolve(data);
} catch (e) {
reject();
}
} else {
reject();
}
},
onerror: reject,
ontimeout: reject,
onabort: reject,
timeout: 5e3
});
});
};
// src/ping.ts
var ping = async () => {
try {
const data = await jsonFetch(`${"https://bypass.city"}/.well-known/ping.json`, {
method: "GET",
headers: {
"Content-Type": "application/json"
}
});
return data.ping;
} catch (e) {
notify({
title: "Server unreachable",
isHelp: true
});
return false;
}
};
// src/utils.ts
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// src/linkvertise.ts
var linkvertiseListener = async () => {
if (!matchLinkvertise(window.location.href)) {
return;
}
const bypassData = GM_getValue("bypass.data");
if (bypassData) {
if (window.location.href.includes("linkvertise.com/48193/")) {
notify({
title: "KRNL DETECTED!",
text: "Bypassing krnl please wait 15 seconds\n to avoid getting blacklisted!"
});
await sleep(15e3);
} else {
notify({});
await sleep(2e3);
}
const targetUrl = bypassData.bypassData;
GM_deleteValue("bypass.data");
window.open(targetUrl, "_self");
} else {
const testConnectivity = await ping();
if (testConnectivity) {
notify({});
await sleep(2e3);
const bypassCityUrl = new URL(`${"https://bypass.city"}/bypass`);
bypassCityUrl.searchParams.set("bypass", encodeURIComponent(window.location.href));
bypassCityUrl.searchParams.set("userscript", "true");
bypassCityUrl.searchParams.set("userscript-version", "11.0.6");
window.open(bypassCityUrl.href, "_self");
}
}
};
var matchLinkvertise = (url) => {
const regex = /https?:\/\/(linkvertise\.(com|download)|(link-(center|target|hub|to)|direct-link|file-link)\.net)/i;
return regex.test(url) && !url.startsWith("https://linkvertise.com/profile") && !url.startsWith("https://linkvertise.com/login");
};
// src/main.ts
(async () => {
console.info("Linkvertise Userscript", "11.0.6 (5c96a51)", window.location.href);
await bypassCityListener();
await linkvertiseListener();
})();
})();
\n
\n \n \n \n
\n
\n 
\n \n
\n \n \n Get Support on our Discord\n
\n