Steam Community - Youtube Videos Adder

Automatically adds your Youtube videos to Steam. It assumes this format for your YouTube videos: {EXACT_GAME_TITLE} - {MISC}. I may support more patterns if requested.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Steam Community - Youtube Videos Adder
// @icon         http://steamcommunity.com/favicon.ico
// @namespace    Royalgamer06
// @author       Royalgamer06
// @version      1.1
// @description  Automatically adds your Youtube videos to Steam. It assumes this format for your YouTube videos: {EXACT_GAME_TITLE} - {MISC}. I may support more patterns if requested.
// @include      *://steamcommunity.com/id/*/videos/add
// @grant        none
// @run-at       document-idle
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);
$(".add_vid_list_entry:first input[type=checkbox]").prop("checked", true);
var game = $(".vid_list_title_add:first").text().split(" - ")[0];
var appid = $("#add_vid_assoc option:contains(" + game.split(")")[0] + ")").val();
if (appid) {
    $("#add_vid_assoc select").val(appid);
} else {
    $("#other_assoc").val(game);
}
AddVideos();