BundleStar_GetKey&Gift

shows how to use babel compiler

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         BundleStar_GetKey&Gift
// @Namespace    http://tampermonkey.net/
// @version      1.03
// @description  shows how to use babel compiler
// @icon         https://cdn.bundlestars.com/production/brand/logo.png
// @author       KamiXuan
// @match        https://www.bundlestars.com/en/orders*
// @namespace https://greasyfork.org/users/113438
// ==/UserScript==
//扩散范围仅限STEAMCN论坛 当然你扩散到其他地方我也是管不到你的 
$ = unsafeWindow.jQuery;
(function($) {
    unsafeWindow.redeem=function redeem()
    {$("a[ng-click='redeemSerial(order._id, item._id, game)'][class='ng-scope'][style='color:#d0fe00']").click();};
    unsafeWindow.get=function get(){
        $("#kamitext").val("");
        $("input[ng-model='game.key']").each(function(index){if(index%2!==0){
        $("#kamitext").val($("#kamitext").val()+$(this).val()+"\n");}});};
    unsafeWindow.getWithName=function (){
        $("#kamitext").val("");
        $("input[ng-model='game.key']").each(function(index){if(index%2!==0){
    $("#kamitext").val($("#kamitext").val()+$(this).parent().parent().parent().parent().find(".title").text()+":"+this.value+"\n");}});};
    $("<button value='redeem' onclick='redeem()' id='kamiredeem'>REDEEM</button>").insertAfter($("h2"));
    $("<button value='get' onclick='get()' id='kamiget'>GET</button>").insertAfter($("#kamiredeem"));
    $("<button value='getwithname' onclick='getWithName()' id='kamigetname'>GETwithNAME</button>").insertAfter($("#kamiget"));
    $("</br><textarea id='kamitext' style='width:400px;height:400px;'></textarea>").insertAfter($("#kamigetname"));})(jQuery);