Greasy Fork is available in English.

Invitation (Bot)

Añade links de referidos a invitation.codes, aumenta tus referidos.

2021/02/15のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Invitation (Bot)
// @icon         https://icons.duckduckgo.com/ip2/invitation.codes.ico
// @version      0.1
// @namespace    https://greasyfork.org/users/592063
// @description  Añade links de referidos a invitation.codes, aumenta tus referidos.
// @author       wuniversales
// @include      https://invitation.codes/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function() {
        if (typeof document.querySelectorAll("div.level-item")[1] !== "undefined") {
            var user=document.querySelectorAll("div.level-item")[1].outerText;
            var extra = document.createElement("br");
            document.querySelector("div.is-centered").appendChild(extra);
            extra = document.createElement("input");
            extra.setAttribute('type', 'url');
            extra.setAttribute('readonly', '');
            extra.setAttribute('onclick', 'this.select()');
            extra.setAttribute('style', 'width:100%;text-align:center;');
            extra.setAttribute('value', location.origin+location.pathname+'/?invite='+document.querySelector("div.counterapi").getAttribute("userId"));
            document.querySelector("div.is-centered").appendChild(extra);
        }
    };
})();