-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkshopAuto30.user.js
27 lines (25 loc) · 986 Bytes
/
workshopAuto30.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name workshopAuto30
// @namespace https://https://github.com/swhoro
// @version 0.2.1
// @description 创意工坊订阅页面自动变为每页30个项目
// @author Aiden
// @match https://steamcommunity.com/id/*/myworkshopfiles/*
// @updateURL https://github.com/swhoro/myJset/raw/master/workshopAuto30.user.js
// ==/UserScript==
(function () {
var thisUrl = window.location.href;
var urls;
if (thisUrl.match("numperpage") == null) {
thisUrl = thisUrl + "&numperpage=30";
window.location.href = thisUrl;
} else if (thisUrl.match("numperpage=10")) {
urls = thisUrl.split("numperpage=10");
thisUrl = urls[0] + "numperpage=30" + urls[1];
window.location.href = thisUrl;
} else if (thisUrl.match("numperpage=20")) {
urls = thisUrl.split("numperpage=20");
thisUrl = urls[0] + "numperpage=30" + urls[1];
window.location.href = thisUrl;
}
})();