customizing_tildes.md 12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
Successor of the awesome-tildes project by @Emerald_Knight listing userthemes, userscripts, and extensions to improve your browsing experience! 

## Changes using the Web Browser

### Extensions

Browser extensions (addons) for Firefox, Chrome, etc... They usually add a number of useful features, especially ones that require deeper integration with the browser.

| Name | Author | Description |
| ---- | ------ | ----------- |
| [Extended](https://github.com/theCrius/tildes-extended) | @crius | Extension for Chrome and Firefox to enhance the UX/UI. |
12
| [ReExtended](https://gitlab.com/tildes-community/tildes-reextended) | @Bauke | An improved version of @crius's original extension with improved labels, a markdown toolbar, etc |
13 14 15 16
| [Plus](https://github.com/avinassh/tildes-plus) | @tcp | Extension to add markdown previews to posts and comments. |

### Scripts

17
Userscripts require an extension like [Violentmonkey](https://violentmonkey.github.io/get-it/) to work. They are similar to browser extensions but are usually less powerful. Firefox users (especially those who have tweaked `about:config`) should be aware that [userscripts may not work on Tildes](https://tildes.net/~tildes/ea2/tildes_focus_a_greasemonkey_script_to_navigate_to_new_comments_on_tildes#comment-3eg2) due to [bugs](https://bugzilla.mozilla.org/show_bug.cgi?id=1267027).
18 19 20 21 22

| Name | Author | Description |
| ---- | ------ | ----------- |
| [Tildenhancer](https://greasyfork.org/en/scripts/369273-tildenhancer) | @thykka | Various UI/UX enhancements, including automatic night mode. | 
| [Tildes Focus](https://tild.es/ea2) | @Wes | Jump around new comments using J/K (vim keybinds) |
23
| [Youtube Thumbs](https://tildes.net/~tildes/ezb/tildes_user_script_youtube_thumbnails_below_topic_title) | @cadadr | Embeds thumbnails into the header on YouTube topics. |
24
| [Hide Vote Count](https://tildes.net/~tildes/ejk/userscript_that_hides_votes_like_in_the_recent_experiment) | @cadadr | Hides the vote count, similar to the old [Tildes experiment](https://tildes.net/~tildes.official/e7i/the_number_of_votes_on_comments_is_no_longer_visible_for_the_next_week) |
25 26 27
| [Tildes Anonymous](https://gitlab.com/Bauke/scripts/tree/master/source/tildes-anonymous) | @Bauke | Makes all usernames inside topic comments a SHA-1 hash and gives them a color based on that hash, effectively making them anonymous. |
| [Tildes Hide Topics](https://gitlab.com/Bauke/scripts/tree/master/source/tildes-hide-topics) | @Bauke | Adds a way to hide (and unhide) topics in the topic listing. |
| [Tildes Replace Outline](https://gitlab.com/Bauke/scripts/tree/master/source/tildes-replace-outline) | @Bauke | Adds the ability to convert whitelisted domains to an Outline.com link. |
28
| [Username Drag'n'Drop](https://tildes.net/~tildes/g46/tildes_user_script_drag_and_drop_usernames_in_order_to_mention_them_in_your_comments) | @cadadr | Drag and drop usernames into reply forms to insert the name. |
29 30 31 32 33 34 35 36 37 38 39 40 41 42

### CSS Themes

Userstyles require an extension like [Stylus](https://github.com/openstyles/stylus/#releases) in order to work. They allow a user to completely change the look and styling of a website to their liking.

| Name | Author | Description |
| ---- | ------ | ----------- |
| [Compact](https://gitlab.com/Bauke/styles/tree/master/css/tildes-compact) | @Bauke | Removes some elements and changes some sizes to make the layout a little more compact. |
| ["Baukula"](https://gitlab.com/Bauke/styles/tree/master/css/tildes-baukula) | @Bauke | Bauke's take on the Dracula theme. [This comment explains/shows the difference from the built-in Dracula theme available from the user settings.](https://tildes.net/~tildes.official/ahb/the_long_awaited_moment_dracula_theme_added_oh_also_the_site_is_publicly_visible_now_but_lets_not#comment-2m7r) |
| [Dark & Flat](https://gitlab.com/jfecher/Tildes-DarkAndFlat) | @rndmprsn | A dark and flat theme + alt. version combined with @pfg's [Collapse Comment Bar](https://gist.github.com/pfgithub/1da7d2024a9748085fccfceaf2ce126d) |
| [Aqua Dark](https://openusercss.org/theme/5ba4643ffd8bc10c006d8c6c) | [Exalt (openusercss)](https://openusercss.org/profile/5b9f139c1a64280c0030ee4d) | A green/blue dark theme |
| [Tildes Darkish](https://userstyles.org/styles/161244/tildes-darkish) | [Minikrob (userstyles.org)](https://userstyles.org/users/663475) | Dark theme using lighter shades of grey. |
| [A Tildes Darkly](https://userstyles.org/styles/164183/a-tildes-darkly) | [Derv Merkler (userstyles.org)](https://userstyles.org/users/285330) | Has many popular variations on dark themes found in Linux ricing: Monokai, Obsidian, ArcDark, and Dracula |
| [Retroterminal](https://gitlab.com/Emerald_Knight/Tildes-Retroterminal-Theme) | @Emerald_Knight | Based on early computer displays, mostly black/green with scanlines. |
43
| ["More like Reddit"](https://pastebin.com/raw/xpJGNXUf) | @tesseractcat | If you want [Tildes to look like Reddit](https://tildes.net/~tildes/9py/could_someone_proficient_with_css_make_a_userstyle_that_moves_the_vote_buttons_on_posts_to_the_left#comment-2geb). |
44

45
### Custom Userstyles
46 47 48 49 50 51 52 53 54 55 56 57 58

Userstyles can also be used to make smaller and more targeted adjustments. Use the browser developer tools, a browser extension such as [Stylus](https://github.com/openstyles/stylus/#releases) and a resource like the [Mozilla Developer Network web docs](https://developer.mozilla.org/en-US/docs/Web/CSS) if you want to try on your own!

For example, the style below will make comment/topic text areas larger:  
```css
@-moz-document domain("tildes.net") {
  .form-markdown textarea.form-input {
    height:700px;
  }
}
```  
[Credits to @hungariantoast and @Deimos](https://tildes.net/~tildes.official/cwh/markdown_preview_is_now_available_when_writing_topics_comments_etc#comment-34xm)

59 60 61 62
### Custom Userstyle Examples

| Name | Author | Description |
| ---- | ------ | ----------- |
63
| [Tildes Stylus Template](https://gitlab.com/tomflint/tildes-stylus-template/) | @tomf | Add this theme to Stylus and mess with the colors. Open the front page, a thread, etc, to get a feel for the impact of different colors. |
64 65
| [Hide Vote Count](https://tildes.net/~tildes/ejk/userscript_that_hides_votes_like_in_the_recent_experiment#comment-3g5p) | @Bauke | Hides vote count, similar to the old [Tildes experiment](https://tildes.net/~tildes.official/e7i/the_number_of_votes_on_comments_is_no_longer_visible_for_the_next_week) |
| [Hide Vote Count (alt.)](https://tildes.net/~tildes/erz/stylus_userstyle_that_hides_comment_vote_counts) | @Soptik | Ditto. |
66
| [Tildes Tweaks](https://gitlab.com/refragable/userstyles/-/raw/master/tildes/tildes-tweaks.user.styl) | @rfr | Userstyle with configurable options. Mostly used to hide elements and change the appearance of the comment entry form |
67
| [Tilweaks](https://tildes.net/~tildes/q0z/tilweaks_a_user_style_i_made_to_clean_up_tildes_interface#comments) | @admicos | Userstyle with configurable options. "Cleans up the interface" by lowering the font size, flattens all default theme colors, and increasing padding. |
68

69 70 71 72 73 74
### Bookmarklets

Bookmarklets are script snippets that you can save as bookmarks. When you use the bookmarklet on a page, it triggers an effect.

### Change your current theme

75 76
__Please note that these theme bookmarklets are now obsolete. You can change the themes simply by using the dropdown menu at the bottom of the screen, in the footer of any page on Tildes.__

77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
Instructions: Copy the code for the theme you want and save it as a bookmark.  

 - In Firefox press `Ctrl+B` to open your bookmarks sidebar and right click on a bookmark to select `Add a New Bookmark`.
   - Paste the javascript code in the `Location` field and fill out the other fields as you wish. Then place the bookmarklet in your bookmarks toolbar for easy access!
 - In Chrome/Chromium press `Ctrl+Shift+O` to open the bookmark manager.
   - Right click anywhere in the manager and select `Add A New Bookmark`.
   - Paste the javascript code in the `URL` field. Once done you can place the bookmarklet in your bookmarks bar for easy access!

  - White:  
`javascript:(function() { document.cookie = "theme=white;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`
  - Solarized Light:  
`javascript:(function() { document.cookie = "theme=light;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`
  - Solarized Dark:  
`javascript:(function() { document.cookie = "theme=dark;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`
  - Dracula:  
`javascript:(function() { document.cookie = "theme=dracula;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`
  - Atom One Dark:  
`javascript:(function() { document.cookie = "theme=atom-one-dark;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`
  - Black:  
`javascript:(function() { document.cookie = "theme=black;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()`

Thanks to @balooga who originally posted the bookmarklets [here](https://tildes.net/~tildes/b1n/i_feel_it_would_be_convenient_to_make_theme_changing_faster#comment-2rkp)!

## Specific Changes with Browser Extensions

### uBlock Origin

>Raymond Gorhill (creator of uBlock Origin):  
>[uBlock Origin](https://github.com/gorhill/uBlock) is __NOT__ an "ad blocker": [it is a wide-spectrum blocker](https://github.com/gorhill/uBlock/wiki/Blocking-mode) -- which happens to be able to function as a mere "ad blocker". The default behavior of uBlock Origin when newly installed is to block ads, trackers and malware sites -- through EasyList, EasyPrivacy, Peter Lowe’s ad/tracking/malware servers, various lists of malware sites, and uBlock Origin's own filter lists.

We can leverage uBlock Origin's advanced capabilities to do things besides ad blocking, like __filtering topics and comments from a specific user__.

### Custom Filters

```
! Filter topics from a specified user (case sensitive)
tildes.net##article.topic[data-topic-posted-by="Example_Username"]
! Filter comments from a specified user (case sensitive)
tildes.net##.comment-itself:has(> header > .link-user:has-text(/^Example_Username$/))
! Filter specific Tildes threads by ID (check the URL)
tildes.net##article[id="topic-7cv"]
! Hides ALL comment authors on Tildes (pseudo-anonymous mode)
tildes.net##.comment-itself > header > .link-user
120 121 122
! Hide comment vote button/count (YOU WILL NOT BE ABLE TO VOTE ON COMMENTS WITH UBLOCK ON)
tildes.net##button.btn-post-action[data-ic-verb="PUT"]:has-text(/^Vote/)
! Hide topic vote button/count (YOU WILL NOT BE ABLE TO VOTE ON TOPICS WITH UBLOCK ON)
123
tildes.net##button.topic-voting
124
! Hide a specified user's vote count
125 126
tildes.net##article.topic[data-topic-posted-by="rfr"] > div.topic-voting
tildes.net##.comment-itself:has(> header > .link-user:has-text(/^rfr$/)) > div.comment-votes
127 128 129
! Hide vote counts on the logged in account's posts/topics
tildes.net##article.is-topic-mine > div.topic-voting
tildes.net##article.is-comment-mine > div.comment-itself > div.comment-votes
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
```

### Instructions for use

  1. Open uBlock Origin Settings.
     * Click the uBlock icon in your browser.
     * There is a big "power button". Below it are four icons, you want to click the far right one. Hovering will show "Open the dashboard".
  2. Go to the "My Filters" tab.
  3. Copy and paste the above filters to the text area.
  4. Edit the filters
     * e.g. replace `Example_Username` with `rfr`.
     * The `^` and `$` in the comment filter are important. Don't remove them when changing the username.
     * Check the "short link" in the side bar for the topic id. 
  5. Copy the filters and edit the necessary usernames/IDs again as many times as you wish. (e.g. to filter additional users/topics)
     * Additionally, if you only want the filter(s) to apply in a certain group, add the group name to the domain like this: `tildes.net/~tildes.official##<filter>`
  6. Remember to click the "Apply Changes" button to save your filters.
  7. Refresh any previously open pages on Tildes. Your filters should now be working!

Credits to @rfr for making the [instructions](https://tildes.net/~tildes/9tp/filtering_specific_users#comment-2h2k)!