-
Notifications
You must be signed in to change notification settings - Fork 6
/
CONFIG.example.ts
64 lines (55 loc) · 3.03 KB
/
CONFIG.example.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copy the cookie header from dev tools on cohost.org. This is used to log in, so don't share it.
//
// The page you’re currently logged into will be the point of view for cohost-dl data.
// You probably shouldn’t switch pages in the browser while the script is running.
// However, you can switch to different pages before running the script multiple times if you’d like
// to e.g. download liked posts for your sideblogs as well!
export const COOKIE = 'connect.sid=adhjsakfahdsfjkash';
// Load all of your own posts
//
// You must list your handle here for likes to be loaded.
// (Also, make sure that the page you’re currently logged into doesn’t have any of these muted or something)
export const PROJECTS = ['your-handle'];
// Load some specific additional posts
export const POSTS = [
'https://cohost.org/example/123456-example-post',
];
// Some CSS posts contain external images that load forever
export const DO_NOT_FETCH_HOSTNAMES = [
'eggbugpocket.queertra.sh', // GIF plays Pokémon
'r0t.is', // Cohost runs Windows XP
];
// Some posts may have disappeared between loading the list of posts and actually loading the posts,
// and give you a '404 not found' error.
// These post IDs can then be listed here and be skipped when loading, so as not to keep retrying
// every time you run the script.
export const SKIP_POSTS = [
9639936,
];
// Skips downloading your likes
export const SKIP_LIKES = false;
// You can keep this set to '' if you don't have a data portability archive from cohost.
// If you do have one, set this to the path to the directory that contains the `user.json` file.
// e.g. if you have it at /Users/example/Desktop/cohost-data/user.json,
// then set this to '/Users/example/Desktop/cohost-data'.
// This information will then be used to also load posts you've commented on or sent an ask for.
export const DATA_PORTABILITY_ARCHIVE_PATH = '';
// Set this to false to disable Javascript, which is responsible for interaction on the generated pages
// (read more/read less, opening/closing CWs, image attachments, etc.).
// It's a little janky, so maybe you want an HTML-only export.
export const ENABLE_JAVASCRIPT = true;
// Alters pages to look like they're being viewed by a more generic observer instead of how your account sees things.
// - Attempts to revert settings for silenced tags, CWs, 18+
// - These cannot be completely removed right now. Original settings will be briefly visible if they were applicable
// to that particular post.
// - Reverts to the default theme
// - Removes bookmarked tags, private notes, private contact info, the page switcher, whether you liked a post,
// and whether you were following someone.
// - Does not remove your own handle from some internal data
// - Does not hide posts from private accounts
//
// NOTE: currently breaks Javascript on all of your own post pages
export const GENERIC_OBSERVER = false;
// Number of seconds to wait between requests.
// Increase this to slow down your download. This might be considered polite towards servers.
export const REQUEST_DELAY_SECS = 0;