File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ sheet.type = "text/css";
1212sheet . innerText = styles ;
1313document . head . appendChild ( sheet ) ;
1414
15+ // hide multi-reddits by default
16+ setTimeout ( ( ) => {
17+ const customFeeds = document . querySelector ( '[aria-controls="multireddits_section"]' ) ;
18+ if ( customFeeds . ariaExpanded === 'true' ) {
19+ customFeeds . click ( ) ;
20+ }
21+ } , 500 ) ;
22+
1523// Select the node that will be observed for mutations
1624const targetNode = document . querySelector ( ".ListingLayout-outerContainer" ) ;
1725
@@ -34,6 +42,7 @@ const observer = new MutationObserver((mutations, _) => {
3442
3543observer . observe ( targetNode , config ) ;
3644
45+
3746/**
3847 *
3948 */
@@ -43,6 +52,7 @@ function run_it(node = document) {
4352 return ;
4453 }
4554
55+
4656 const sections = location . pathname . split ( / (? ! ^ ) \/ / ) ;
4757 const loc = sections [ 0 ] ;
4858 if ( [ "/user" , "/r" ] . includes ( loc ) ) {
You can’t perform that action at this time.
0 commit comments