├── reddit.txt ├── google-account-popup.txt ├── 0-include-all.txt ├── COPYING ├── linkedin.txt ├── twitter.txt ├── README.md └── stackoverflow-co.txt /reddit.txt: -------------------------------------------------------------------------------- 1 | !! Reddit 2 | ! Advertise button top bar 3 | www.reddit.com##[aria-label="Advertise"] 4 | -------------------------------------------------------------------------------- /google-account-popup.txt: -------------------------------------------------------------------------------- 1 | ! Hide login with Google annoying popups 2 | accounts.google.com/gsi/iframe 3 | -------------------------------------------------------------------------------- /0-include-all.txt: -------------------------------------------------------------------------------- 1 | ! Title: mig4ng's uBlock filters 2 | ! Description: Filters for uBlock, to remove distractions in multiple websites. 3 | ! Homepage: https://github.com/mig4ng/ublock-origin-filters 4 | ! License: https://github.com/mig4ng/ublock-origin-filters/blob/main/COPYING 5 | 6 | !#include google-account-popup.txt 7 | !#include linkedin.txt 8 | !#include twitter.txt 9 | !#include stackoverflow-co.txt 10 | !#include reddit.txt 11 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2023 Miguel Carneiro (mig4ng) and contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /linkedin.txt: -------------------------------------------------------------------------------- 1 | ! Hide LinkedIn feed only in the feed pages 2 | www.linkedin.com##.scaffold-finite-scroll--infinite.scaffold-finite-scroll:matches-path(/feed) 3 | www.linkedin.com##.feed-sort-toggle-dsa__wrapper:matches-path(/feed) 4 | 5 | ! Hide LinkedIn recommended 6 | www.linkedin.com##.scaffold-layout__aside[aria-label="Add to your feed"] 7 | 8 | ! Hide LinkedIn premium sponsor ads 9 | www.linkedin.com##.premium-upsell-link 10 | www.linkedin.com##.premium-upsell-link--extra-long 11 | 12 | ! Hide LinkedIn messages overlay 13 | www.linkedin.com##.msg-overlay-container-reflow.msg-overlay-container 14 | www.linkedin.com##.mb2.artdeco-card.community-panel 15 | 16 | ! Hide LinkedIn "Try Premium for free" in My Network 17 | www.linkedin.com##.relative.flex-column.display-flex.align-items-left.mb4.artdeco-card.p4.mn-sales-navigator-upsell 18 | www.linkedin.com##.artdeco-card.full-width.mn-abi-form__container 19 | 20 | ! Hide LinkedIn "For Business" Top Bar 21 | www.linkedin.com##.flex-column.display-flex.align-items-left.mt5.p4.artdeco-card 22 | www.linkedin.com##.global-nav__app-launcher-trigger.pl3.global-nav__primary-item--divider.global-nav__primary-link 23 | 24 | ! Hide LinkedIn "Try Premium for free" both in specific job and Jobs search 25 | www.linkedin.com##.premium-accent-bar.ember-view.artdeco-card 26 | www.linkedin.com##.ph5.pv4.job-details-how-you-match-card__upsell 27 | www.linkedin.com##.flex-column.display-flex.align-items-left.p4.justify-center.artdeco-card 28 | -------------------------------------------------------------------------------- /twitter.txt: -------------------------------------------------------------------------------- 1 | ! Disable Twitter distractions 2 | ! Inspired by https://adamgreenough.me/blog/how-to-hide-whats-happening-trending-topics-on-twitter/#rules 3 | ! Improved some and added some others. 4 | 5 | ! Hide Twitter 'Timeline: Trending now' sidebar 6 | twitter.com##*[aria-label="Timeline: Trending now"]:nth-ancestor(2) 7 | 8 | ! Hide Twitter 'Who to follow' sidebar 9 | twitter.com##*[aria-label="Who to follow"]:nth-ancestor(2) 10 | 11 | !Hide Twitter 'Subscribe to Premium' sidebar 12 | twitter.com##*[aria-label="Subscribe to Premium"]:nth-ancestor(1) 13 | 14 | !Hide Twitter 'Timeline: Your Home Timeline' 15 | twitter.com##*[aria-label="Timeline: Your Home Timeline"] 16 | 17 | ! Hide Twitter bottom message panel 18 | twitter.com##*[data-testid="DMDrawerHeader"] 19 | 20 | !Hide Twitter 'Timeline: Explore' 21 | twitter.com##*[aria-label="Timeline: Explore"] 22 | 23 | !Hide Twitter 'New Tweets are available. Push the period key to go to the them.' 24 | twitter.com##*[aria-label="New Tweets are available. Push the period key to go to the them."] 25 | 26 | ! TODO Fix this one to remove suggestions at the end of the comments in a post. 27 | !twitter.com##*[data-testid="cellInnerDiv"]:has-text('Sourced from across Twitter'):xpath(following-sibling::div) 28 | ! Send me an email if you fixed this on. My username at gmail.com. My username is the same as the one in GitHub. 29 | 30 | ! Hide Twitter 'Verified' left side menu item 31 | twitter.com##nav [role="link"][aria-label="Verified"] 32 | 33 | ! Hide Twitter 'Communities' left side menu item 34 | ! twitter.com##nav [role="link"][aria-label="Communities (New items)"] 35 | 36 | ! Hide Twitter 'Listen live in Spaces' 37 | twitter.com##span:has-text(Listen live in Spaces):upward(4) 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ublock-origin-filters 2 | My uBlock Origin filters to remove unnecessary distractions from some websites. 3 | 4 | For each website I have very specific tasks I do. 5 | I optimize for allowing those tasks, while disabling everything else that might distract me. 6 | 7 | These are my preferences, feel free to use the filters directly from this repository or fork them. 8 | 9 | If I miss anything or you think I would benefit from something else, open an issue, pull request or send me an email (my github username at gmail.com). 10 | 11 | ## How to use/install 12 | 13 | Add the `0-include-all.txt` file to your imports. 14 | 15 | Click the extension, then the open the dashboard in the gears (click `More` to see it). Go to `Filter Lists > Import...` and add the following link: 16 | ``` 17 | https://raw.githubusercontent.com/mig4ng/ublock-origin-filters/main/0-include-all.txt 18 | ``` 19 | 20 | ## Description 21 | 22 | ### Google account popup 23 | 24 | Disable annoying Google popup that plagues many websites. 25 | 26 | ### YouTube 27 | 28 | **Objective:** Remove all distractions, recommended videos, auto-play, suggestions (everywhere), shorts. Most of the time I only want to: 29 | - watch a video; 30 | - search something; 31 | - upload something. 32 | 33 | *Note:* Right now I am using Unhook (the Firefox extension). It works well but it might be possible to replace it with a filter too (https://letsblock.it/filters). 34 | 35 | ### Twitter 36 | 37 | **Objective:** Remove all distractions, feed, sidebar, etc. Most of the time I only want to: 38 | - see the tweet feed in a specific profile I have opened; 39 | - see a tweet content and it's comments; 40 | - tweet something. 41 | 42 | ### LinkedIn 43 | 44 | **Objective:** Remove all distractions, feed, sidebar, etc. Most of the time I only want to: 45 | - see a profile, company; 46 | - read a specific post; 47 | - reply to messages; 48 | - post something. 49 | 50 | ### Stack Overflow and Stack Exchange 51 | 52 | **Objective:** Remove points, profile pictures, reminders to interact. Most of the time I only want to: 53 | 54 | - read the top answer on a question. 55 | -------------------------------------------------------------------------------- /stackoverflow-co.txt: -------------------------------------------------------------------------------- 1 | ! Disable distractions on Stack Overflow and all other Stack Exchange sites. 2 | 3 | ! Top bar 4 | ! Small orange top ribbon 5 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-topbar:style(border-top:0!important) 6 | ! About/Products/For Teams buttons (left of search bar) 7 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-topbar > .s-topbar--container > .s-navigation 8 | ! Your points 9 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-topbar--content .s-topbar--item.s-user-card .s-user-card--info 10 | ! You have more points notification 11 | !stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-topbar--content .js-achievements-button 12 | ! Help icon 13 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-topbar--content .js-help-button 14 | 15 | ! Join Stack Overflow 16 | stackoverflow.com###signup-dialog-container 17 | ! Reminder to upvote the question 18 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###overlay-header 19 | ! Giant site logo before the content on some Stack Exchange sites 20 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.site-header 21 | ! "Looking for more? Browse the complete list of questions, or popular tags. Help us answer unanswered questions." 22 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.bottom-notice 23 | 24 | ! Right sidebar 25 | ! Yellow box with The Overflow Blog/Featured on Meta/Hot Meta Posts 26 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###sidebar > .s-sidebarwidget.s-sidebarwidget__yellow 27 | ! Collectives 28 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###sidebar > .js-join-leave-container 29 | ! Recent badges other users have earned 30 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###sidebar > #recent-badges 31 | ! Ads and hiring ads go here 32 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###sidebar > .js-sidebar-zone 33 | ! Hot Network Questions (there's an official setting to hide this now) 34 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###sidebar > #hot-network-questions 35 | ! RSS feed links (Recent questions feed (on homepage), Question feed (on question page), User feed (on a user's profile page)) 36 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com###feed-link 37 | 38 | ! Footer (About, Contant Us, etc.) 39 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.site-footer 40 | 41 | ! Profile pictures 42 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-gravatar16 43 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-gravatar32 44 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-gravatar48 45 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-gravatar64 46 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .gravatar-wrapper-16 47 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .gravatar-wrapper-32 48 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .gravatar-wrapper-48 49 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .gravatar-wrapper-64 50 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-details:style(margin-left:0px!important) 51 | ! Users' points 52 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-signature > .user-info > .user-details > .-flair 53 | ! Profile pictures on Top Questions page 54 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-post-summary--meta > .s-user-card > .s-user-card--avatar 55 | ! Users' points next to username on Top Questions page 56 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-post-summary--meta > .s-user-card > .s-user-card--info > .s-user-card--awards 57 | ! Hide annoying usernames 58 | ! Put username text to match on (case insensitive) between the // 59 | !stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-user-card--link > .flex--item:has-text(//i) 60 | !stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.comment-user:has-text(//i) 61 | !stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.user-details > a:has-text(//i) 62 | ! is new to SO notice 63 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.js-new-contributor-indicator 64 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.new-contributor-indicator 65 | 66 | ! Tag icons (like an AWS logo next to the amazon-web-services tag) 67 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.post-tag > .sponsor-tag-img 68 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.s-post-summary--meta > .s-post-summary--meta-tags > .js-community-tag.subcommunity-avatar 69 | 70 | ! Christmas promotion 71 | stackoverflow.com,stackexchange.com,askubuntu.com,stackapps.com,mathoverflow.net,superuser.com,serverfault.com##.js-winterbash 72 | --------------------------------------------------------------------------------