diff --git a/osx b/osx index ce1ef50..e059d47 100755 --- a/osx +++ b/osx @@ -48,10 +48,10 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false defaults write com.apple.finder WarnOnEmptyTrash -bool false # 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 -chflags nohidden ~/Library +chflags nohidden ~/Library # Show indicator lights for open applications in the Dock defaults write com.apple.dock show-process-indicators -bool true @@ -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) #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 -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 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 defaults write com.apple.terminal StringEncodings -array 4 @@ -77,4 +78,9 @@ defaults write com.apple.terminal StringEncodings -array 4 defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false # Prevent Time Machine from prompting to use new hard drives as backup volume -defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true \ No newline at end of file +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" \ No newline at end of file diff --git a/webstyle.css b/webstyle.css new file mode 100644 index 0000000..99020e0 --- /dev/null +++ b/webstyle.css @@ -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; +} \ No newline at end of file