Workshop - Unsubscribe from All

Lets just add a nice juicy button here to unsubscribe from all of those addons. Still slow, but not as slow as doing it 1 by 1.

スクリプトをインストールするには、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         Workshop - Unsubscribe from All
// @namespace    http://facepunch.com/
// @version      1.0
// @description  Lets just add a nice juicy button here to unsubscribe from all of those addons. Still slow, but not as slow as doing it 1 by 1.
// @author       Shigbeard
// @match        http://steamcommunity.com/id/*/myworkshopfiles/?appid=*&browsefilter=mysubscriptions*
// @match        https://steamcommunity.com/id/*/myworkshopfiles/?appid=*&browsefilter=mysubscriptions*
// @grant        none
// ==/UserScript==

function UnsubscribeFromAll() {
	var divs = document.getElementsByTagName("div");
	var t = 0;
	for(var i = 0; i < divs.length; i++){
		var currentid = divs[i].id;
		var n = currentid.search(/Subscription\d+/g);
		if(n != -1){
			var t = t + 1;
			var m = currentid.search(/\d+/g);
			var wid = currentid.substr(m);
			console.log(wid);
			UnsusbcribeItem(wid, sharedFilesQueryParams['appid']);
		}
	}
	console.log("Results");
	console.log(t);
	console.log(i);
}

document.getElementById('rightContents').getElementsByClassName("rightDetailsBlock")[0].innerHTML += "<div class=\"workshopLink\"><a href=\"javascript:UnsubscribeFromAll()\">Unsubscribe from everything you see here</a></div>";