Create a bookmark and replace URL with either of the listed codes
Easier: (google chrome)
- Triple click to the whole thing
- COPY!
- Now hit
[CTRL] + [D]
public interface TextWatcherAdapter extends TextWatcher { | |
enum Action { | |
beforeTextChanged, | |
onTextChanged, | |
afterTextChanged | |
} | |
default void beforeTextChanged(CharSequence s, int start, int count, int after) { | |
this.action(Action.beforeTextChanged, s, start, count, after); | |
} |
#/bin/sh | |
if ! [ "$1" ]; | |
then | |
echo "where file" | |
exit | |
fi | |
filename="${1%.*}" | |
extension="${1##*.}" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style type="text/css"> | |
html { | |
height: 100%; | |
display: flex; | |
align-items: center; |
if [ -s /etc/hosts.bak ]; then | |
echo '[ Restoring your original hosts file ]' | |
sudo mv /etc/hosts.bak /etc/hosts | |
echo '[ Done! ]' | |
else | |
echo '[ There is nothing to do... ]' | |
fi |
# taken from here: | |
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/ | |
0.0.0.0 adclick.g.doublecklick.net | |
0.0.0.0 adeventtracker.spotify.com | |
0.0.0.0 ads-fa.spotify.com | |
0.0.0.0 analytics.spotify.com | |
0.0.0.0 audio2.spotify.com | |
0.0.0.0 b.scorecardresearch.com | |
0.0.0.0 bounceexchange.com | |
0.0.0.0 bs.serving-sys.com |