mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-25 11:28:32 +01:00
more Safari stuff & CSS rules for a more sane web
This commit is contained in:
parent
ca6d1e5b84
commit
dfd92b57dd
16
osx
16
osx
@ -48,7 +48,7 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
|
|||||||
defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
||||||
|
|
||||||
# Empty Trash securely by default
|
# Empty Trash securely by default
|
||||||
defaults write com.apple.finder EmptyTrashSecurely -bool true
|
#defaults write com.apple.finder EmptyTrashSecurely -bool true
|
||||||
|
|
||||||
# Show the ~/Library folder
|
# Show the ~/Library folder
|
||||||
chflags nohidden ~/Library
|
chflags nohidden ~/Library
|
||||||
@ -61,15 +61,16 @@ defaults write com.apple.dock show-process-indicators -bool true
|
|||||||
# Add a spacer to the right side of the Dock (where the Trash is)
|
# Add a spacer to the right side of the Dock (where the Trash is)
|
||||||
#defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
#defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
||||||
|
|
||||||
|
# Enable Safari's develop menu
|
||||||
|
#defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
||||||
|
#defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
||||||
|
|
||||||
# Enable Safari’s debug menu
|
# Enable Safari’s debug menu
|
||||||
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
#defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
||||||
|
|
||||||
# Make Safari’s search banners default to Contains instead of Starts With
|
# Make Safari’s search banners default to Contains instead of Starts With
|
||||||
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
||||||
|
|
||||||
# Add a context menu item for showing the Web Inspector in web views
|
|
||||||
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
|
||||||
|
|
||||||
# Only use UTF-8 in Terminal.app
|
# Only use UTF-8 in Terminal.app
|
||||||
defaults write com.apple.terminal StringEncodings -array 4
|
defaults write com.apple.terminal StringEncodings -array 4
|
||||||
|
|
||||||
@ -78,3 +79,8 @@ defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
|
|||||||
|
|
||||||
# Prevent Time Machine from prompting to use new hard drives as backup volume
|
# Prevent Time Machine from prompting to use new hard drives as backup volume
|
||||||
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
||||||
|
|
||||||
|
# Set web style sheet
|
||||||
|
defaults write com.apple.Safari UserStyleSheetEnabled -bool true
|
||||||
|
defaults write com.apple.Safari UserStyleSheetLocationURLString -string "~/.dotfiles/webstyle.css"
|
||||||
|
defaults write com.apple.Safari WebKitUserStyleSheetLocationPreferenceKey -string "~/.dotfiles/webstyle.css"
|
59
webstyle.css
Normal file
59
webstyle.css
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
#############################
|
||||||
|
CSS rules for a more sane web
|
||||||
|
#############################
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
select as user style sheet in browser
|
||||||
|
or use defaults rules in dotfiles/osx
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* GOOGLE SEARCH
|
||||||
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
/* Ads */
|
||||||
|
#tads,
|
||||||
|
#bottomads {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dude, I'm searching not socialising */
|
||||||
|
#gsr #gbu {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TWITTER
|
||||||
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
/* Nice try, Twitter */
|
||||||
|
div.promoted-tweet {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Discover menu, Who to follow, Similiar, Trends */
|
||||||
|
li[data-global-action="discover"],
|
||||||
|
.component[data-component-term="user_recommendations"],
|
||||||
|
.component[data-component-term="similar_user_recommendations"],
|
||||||
|
.module.trends.component {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* GOOGLE+
|
||||||
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
/* I don't think that's Fun & Interesting */
|
||||||
|
div[guidedhelpid="celebritysuggestions"] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* STACK OVERFLOW ET AL.
|
||||||
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
.ad-container,
|
||||||
|
#newsletter-ad,
|
||||||
|
#recent-badges,
|
||||||
|
.everyonelovesstackoverflow {
|
||||||
|
display: none !important;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user