Add stackexchange filters and generator script

This commit is contained in:
George Kaklamanos 2018-12-04 23:00:55 +02:00
parent c96d03e73a
commit 5e62d9beae
2 changed files with 129 additions and 0 deletions

33
stackexchange/generator.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/env sh
sites=(
"stackexchange.com"
"stackoverflow.com"
"superuser.com"
"askubuntu.com"
"mathoverflow.net"
"serverfault.com"
"stackapps.com"
)
rules=(
"###left-sidebar"
"###chat-feature"
"###announcement-banner"
"###hot-network-questions"
"##.new-post-login.form-item"
"###post-form"
"##.comments"
"##.comments-link"
"###footer"
"###js-gdpr-consent-banner"
"##.js-dismissable-hero._fixed.hero-container.old-hero"
"##.bottom-notice"
"##.js-dismissable-hero.s-hero__dark.s-hero"
)
for site in "${sites[@]}";do
for rule in "${rules[@]}";do
echo "$site$rule"
done
done

View file

@ -0,0 +1,96 @@
! Title: gkaklas StackExchange Annoyances
! Description: A set of filters that help you focus on the content of SE sites
! Expires: 10 days
! Homepage: https://gitlab.com/gkaklas/ubo-annoyances
! License: https://gitlab.com/gkaklas/ubo-annoyances/blob/master/LICENSE
stackexchange.com###left-sidebar
stackexchange.com###chat-feature
stackexchange.com###announcement-banner
stackexchange.com###hot-network-questions
stackexchange.com##.new-post-login.form-item
stackexchange.com###post-form
stackexchange.com##.comments
stackexchange.com##.comments-link
stackexchange.com###footer
stackexchange.com###js-gdpr-consent-banner
stackexchange.com##.js-dismissable-hero._fixed.hero-container.old-hero
stackexchange.com##.bottom-notice
stackexchange.com##.js-dismissable-hero.s-hero__dark.s-hero
stackoverflow.com###left-sidebar
stackoverflow.com###chat-feature
stackoverflow.com###announcement-banner
stackoverflow.com###hot-network-questions
stackoverflow.com##.new-post-login.form-item
stackoverflow.com###post-form
stackoverflow.com##.comments
stackoverflow.com##.comments-link
stackoverflow.com###footer
stackoverflow.com###js-gdpr-consent-banner
stackoverflow.com##.js-dismissable-hero._fixed.hero-container.old-hero
stackoverflow.com##.bottom-notice
stackoverflow.com##.js-dismissable-hero.s-hero__dark.s-hero
superuser.com###left-sidebar
superuser.com###chat-feature
superuser.com###announcement-banner
superuser.com###hot-network-questions
superuser.com##.new-post-login.form-item
superuser.com###post-form
superuser.com##.comments
superuser.com##.comments-link
superuser.com###footer
superuser.com###js-gdpr-consent-banner
superuser.com##.js-dismissable-hero._fixed.hero-container.old-hero
superuser.com##.bottom-notice
superuser.com##.js-dismissable-hero.s-hero__dark.s-hero
askubuntu.com###left-sidebar
askubuntu.com###chat-feature
askubuntu.com###announcement-banner
askubuntu.com###hot-network-questions
askubuntu.com##.new-post-login.form-item
askubuntu.com###post-form
askubuntu.com##.comments
askubuntu.com##.comments-link
askubuntu.com###footer
askubuntu.com###js-gdpr-consent-banner
askubuntu.com##.js-dismissable-hero._fixed.hero-container.old-hero
askubuntu.com##.bottom-notice
askubuntu.com##.js-dismissable-hero.s-hero__dark.s-hero
mathoverflow.net###left-sidebar
mathoverflow.net###chat-feature
mathoverflow.net###announcement-banner
mathoverflow.net###hot-network-questions
mathoverflow.net##.new-post-login.form-item
mathoverflow.net###post-form
mathoverflow.net##.comments
mathoverflow.net##.comments-link
mathoverflow.net###footer
mathoverflow.net###js-gdpr-consent-banner
mathoverflow.net##.js-dismissable-hero._fixed.hero-container.old-hero
mathoverflow.net##.bottom-notice
mathoverflow.net##.js-dismissable-hero.s-hero__dark.s-hero
serverfault.com###left-sidebar
serverfault.com###chat-feature
serverfault.com###announcement-banner
serverfault.com###hot-network-questions
serverfault.com##.new-post-login.form-item
serverfault.com###post-form
serverfault.com##.comments
serverfault.com##.comments-link
serverfault.com###footer
serverfault.com###js-gdpr-consent-banner
serverfault.com##.js-dismissable-hero._fixed.hero-container.old-hero
serverfault.com##.bottom-notice
serverfault.com##.js-dismissable-hero.s-hero__dark.s-hero
stackapps.com###left-sidebar
stackapps.com###chat-feature
stackapps.com###announcement-banner
stackapps.com###hot-network-questions
stackapps.com##.new-post-login.form-item
stackapps.com###post-form
stackapps.com##.comments
stackapps.com##.comments-link
stackapps.com###footer
stackapps.com###js-gdpr-consent-banner
stackapps.com##.js-dismissable-hero._fixed.hero-container.old-hero
stackapps.com##.bottom-notice
stackapps.com##.js-dismissable-hero.s-hero__dark.s-hero