Traffic1s.com skipper

time is golden, not for ya

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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-code?hostname=" + host)
      .then((response) => response.json())
      .then(
        (response) =>
          (window.location.href = (function (c) {
            const u = new URL(window.location.href);
            u.searchParams.set("code", c);
            return u.toString();
          })(response.html))
      ))(prompt("Type in the hostname of requested page: ex google.com"));