forked from taustation-fan/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhide_tasks.js
More file actions
34 lines (32 loc) · 1.26 KB
/
hide_tasks.js
File metadata and controls
34 lines (32 loc) · 1.26 KB
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
28
29
30
31
32
33
34
// ==UserScript==
// @name taustation_hide_tasks
// @namespace https://github.com/dot-sent
// @version 0.1
// @description Hide irrelevant career tasks
// @author Dot_sent
// @match https://alpha.taustation.space/area/*
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
function taustation_hide_tasks() {
// This associative array contains tasks that should remain listed.
// All the others will be hidden. This particular list is adjusted
// for a high-level Clone Technician, you will want to create your
// own according to the career you choose and the career rank you
// currently have. Don't forget to adjust this list accordingly
// when you get closer to the next career level!
var visibleTasks = {
"Interview a new client": 1,
"Rearrange the clone tank layout": 1,
"Dispose of a clone": 1,
"Administer an accelerant dose": 1,
"Complete the clone center's payroll": 1,
"Create a premium clone": 1,
};
$('div.tab-content-career').find("td[data-label='Task']").each(function(i,el){
if (visibleTasks[el.innerHTML] != 1) {
$(el).parent().hide();
}
});
}
$(document).ready(taustation_hide_tasks);