Skip to content

Instantly share code, notes, and snippets.

@hUwUtao
Last active February 8, 2023 06:36
Show Gist options
  • Save hUwUtao/102e0ef50865fe995b8b4e2ed4045363 to your computer and use it in GitHub Desktop.
Save hUwUtao/102e0ef50865fe995b8b4e2ed4045363 to your computer and use it in GitHub Desktop.
Traffic1s.com search bypasser.
// ==UserScript==
// @name Traffic1s.com skipper
// @name:vi Chống rút gọn Traffic1s.com
// @namespace SignedBy.hUwUtao
// @license MIT
// @version 0.1
// @description time is golden, not for ya
// @description:vi Không cần tìm code trên google
// @author hUwUtao
// @match https://traffic1s.com/*
// ==/UserScript==
document.getElementsByName("code").length != 0 && //
(!new URLSearchParams(window.location.search).get("code") || //
document.querySelector(".alert.alert-danger") != null) && //
((host) =>
fetch("https://traffic1s.com/get-codes?hostname=" + host)
.then((response) => response.json())
.then(
(response) => alert(response.html)
))(prompt("Type in the hostname of requested page: ex google.com"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment