This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Block annoying CNet auto-play videos. | |
! Tried to make it targeted so that if you actually wanted to watch a video, you could... | |
! Tested/works with uBlock Origin | |
! Block the playlist | |
www.cnet.com/videos/manifest/*.m3u8?device=ott* | |
! Block the script that loads the playlists | |
*.cbsistatic.com/fly/js/pages/desktop/article_video_test*.js | |
! Element hiding: hide the now-useless placeholder | |
www.cnet.com##.entered.dock.inviewElement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get Sudo. | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
# Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
# Install Xcode command line tools. | |
xcode-select --install |