This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcontent.ts
63 lines (62 loc) · 2.45 KB
/
content.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
import { Collapse } from "./builtin/collapse";
import { ColorGauge } from "./builtin/color_gauge";
import { CommentTags } from "./builtin/comment_tags";
import { EmojiPoster } from "./builtin/emoji_poster";
import { ImageUploader } from "./builtin/image-uploader";
import { LocalTimeStamp } from "./builtin/local_timestamp";
import { ModBanners } from "./builtin/mod_banners";
import { PostLengthCounter } from "./builtin/post_length_counter";
import { UserPopup } from "./builtin/userpopup";
import { ChromeShack } from "./core/observer";
import { contentScriptLoaded } from "./core/observer_handlers";
import { ChattyNews } from "./optional/chatty-news";
import { CustomUserFilters } from "./optional/custom_user_filters";
import { DinoGegtik } from "./optional/dinogegtik";
import { Drafts } from "./optional/drafts";
import { HighlightUsers } from "./optional/highlight_users";
import { HighlightPendingPosts } from "./optional/highlightpending";
import { MediaEmbedder } from "./optional/media-embedder";
import { NewCommentHighlighter } from "./optional/new_comment_highlighter";
import { PostStyling } from "./optional/post_style";
import { PostPreview } from "./optional/postpreview";
import { SparklyComic } from "./optional/sparkly_comic";
import { Switchers } from "./optional/switchers";
import { Templates } from "./optional/templates";
import { ThreadPane } from "./optional/threadpane";
import { TwitchAutoplay } from "./optional/twitch_autoplay";
import "./styles/chromeshack.css";
import "./styles/comic_scripts.css";
(async () => {
try {
await contentScriptLoaded();
// ^ make sure this is first
await ChattyNews.install();
await Collapse.install();
await CommentTags.install();
await CustomUserFilters.install();
await DinoGegtik.install();
await HighlightPendingPosts.install();
await HighlightUsers.install();
await NewCommentHighlighter.install();
await PostStyling.install();
await SparklyComic.install();
await Switchers.install();
await TwitchAutoplay.install();
await ThreadPane.install();
Drafts.install();
EmojiPoster.install();
ImageUploader.install();
LocalTimeStamp.install();
MediaEmbedder.install();
ModBanners.install();
PostLengthCounter.install();
PostPreview.install();
Templates.install();
UserPopup.install();
ColorGauge.install();
// always make sure the ChromeShack observer is last
ChromeShack.install();
} catch (e) {
console.error(e);
}
})();