Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions AdGuard_games_streaming_social_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ sites.google.com/site/unblockedgamesvevo
||b3ta.com^
||babygames.com^
||badazzfemales.wordpress.com^
||baidu.com^
||baits.io^
||bakno.com^
||baknogames.com^
Expand Down Expand Up @@ -1819,7 +1818,6 @@ sites.google.com/site/unblockedgamesvevo
||girlsgogames.com^
||girlsgogames.fr^
||girlsjeux.com^
||github.io^
||giydiroyun.com^
||gjeux.com^
||gladiatus.com^
Expand Down Expand Up @@ -4690,3 +4688,9 @@ sites.google.com/site/unblockurgames^
||gulper.io^
||gamekult.com^
||antstream.com^
||arcadrome.com^
||cg.163.com^
||heheda.cn^
||moe.ms^
||plantsvszombiesfusion.com^
||wan1234.com^
8 changes: 6 additions & 2 deletions Domain_list_raw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ azeroth.fr
b3ta.com
babygames.com
badazzfemales.wordpress.com
baidu.com
baits.io
bakno.com
baknogames.com
Expand Down Expand Up @@ -1799,7 +1798,6 @@ girlsgogames.co.uk
girlsgogames.com
girlsgogames.fr
girlsjeux.com
github.io
giydiroyun.com
gladiatus.com
gladiatus.fr
Expand Down Expand Up @@ -4654,3 +4652,9 @@ poxel.io
gulper.io
gamekult.com
antstream.com
arcadrome.com
cg.163.com
heheda.cn
moe.ms
plantsvszombiesfusion.com
wan1234.com
22 changes: 15 additions & 7 deletions GamesStreamingSocialFilter_Apple.mobileconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>B549F4B5-B945-4D8D-9896-6CA35C0EC09A</string>
<string>DF7AC95C-BD11-406A-B9C5-CF0F532C3D7C</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadContent</key>
Expand All @@ -22,13 +22,13 @@
<key>PayloadIdentifier</key>
<string>com.gamestreamingsocial.webcontentfilter.filter</string>
<key>PayloadUUID</key>
<string>5C06EB49-4F68-4F68-9A78-A982EABCE431</string>
<string>151C9391-FB8B-46EC-BB0E-1509BFF15B75</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadDisplayName</key>
<string>Games, Streaming &amp; Social Web Filter</string>
<key>ContentFilterUUID</key>
<string>73AFC9B1-1BCB-4464-9BE8-00D0EB4D5B08</string>
<string>C22BF5B5-07C3-48FE-A7A1-58C9227DCBB7</string>
<key>FilterType</key>
<string>BuiltIn</string>
<key>AutoFilterEnabled</key>
Expand Down Expand Up @@ -663,8 +663,6 @@
<string>http://babygames.com</string>
<string>https://badazzfemales.wordpress.com</string>
<string>http://badazzfemales.wordpress.com</string>
<string>https://baidu.com</string>
<string>http://baidu.com</string>
<string>https://baits.io</string>
<string>http://baits.io</string>
<string>https://bakno.com</string>
Expand Down Expand Up @@ -3637,8 +3635,6 @@
<string>http://girlsgogames.fr</string>
<string>https://girlsjeux.com</string>
<string>http://girlsjeux.com</string>
<string>https://github.io</string>
<string>http://github.io</string>
<string>https://giydiroyun.com</string>
<string>http://giydiroyun.com</string>
<string>https://gladiatus.com</string>
Expand Down Expand Up @@ -9347,6 +9343,18 @@
<string>http://gamekult.com</string>
<string>https://antstream.com</string>
<string>http://antstream.com</string>
<string>https://arcadrome.com</string>
<string>http://arcadrome.com</string>
<string>https://cg.163.com</string>
<string>http://cg.163.com</string>
<string>https://heheda.cn</string>
<string>http://heheda.cn</string>
<string>https://moe.ms</string>
<string>http://moe.ms</string>
<string>https://plantsvszombiesfusion.com</string>
<string>http://plantsvszombiesfusion.com</string>
<string>https://wan1234.com</string>
<string>http://wan1234.com</string>
</array>
</dict>
</array>
Expand Down
46 changes: 36 additions & 10 deletions check_urls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@ cd "$(dirname "$0")"
input_file="Domain_list_raw.txt"
adguard_file="AdGuard_games_streaming_social_list.txt"

delete_exact_line() {
local target="$1"
local file="$2"
local tmp

tmp=$(mktemp "${TMPDIR:-/tmp}/adguard-filter.XXXXXX") || return 1
if ! awk -v target="$target" '
BEGIN { removed = 0 }
$0 == target { removed = 1; next }
{ print }
END { exit(removed ? 0 : 2) }
' "$file" > "$tmp"; then
rm -f "$tmp"
return 1
fi

if ! mv "$tmp" "$file"; then
rm -f "$tmp"
return 1
fi
}

# Vérification des URL
while IFS= read -r url; do
if [[ -n "$url" ]]; then
Expand All @@ -15,16 +37,20 @@ while IFS= read -r url; do
if [[ $? -ne 0 ]]; then
echo "❌ URL invalide : $url"

# Supprimer la ligne de Listing_raw.txt
sed -i '' "\|^${url}$|d" "$input_file"
# Supprimer la ligne de Domain_list_raw.txt
if ! delete_exact_line "$url" "$input_file"; then
echo " Échec de suppression dans $input_file"
exit 1
fi

# Chercher et supprimer la ligne correspondante dans AdGuard_games_list.txt
matched_line=$(grep -nF "$url" "$adguard_file" | head -1)
if [[ -n "$matched_line" ]]; then
line_num=$(echo "$matched_line" | cut -d: -f1)
line_content=$(echo "$matched_line" | cut -d: -f2-)
sed -i '' "${line_num}d" "$adguard_file"
echo " Supprimé de $adguard_file : $line_content"
# Supprimer la ligne correspondante dans AdGuard_games_streaming_social_list.txt
if grep -qFx "||${url}^" "$adguard_file"; then
if delete_exact_line "||${url}^" "$adguard_file"; then
echo " Supprimé de $adguard_file : ||${url}^"
else
echo " Échec de suppression dans $adguard_file"
exit 1
fi
else
echo " URL non trouvée dans $adguard_file"
fi
Expand All @@ -35,4 +61,4 @@ while IFS= read -r url; do
done < <(cat "$input_file")

echo ""
echo "Vérification terminée."
echo "Vérification terminée."
49 changes: 38 additions & 11 deletions remove_domain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ cd "$(dirname "$0")"
listing_file="Domain_list_raw.txt"
adguard_file="AdGuard_games_streaming_social_list.txt"

delete_exact_line() {
local target="$1"
local file="$2"
local tmp

tmp=$(mktemp "${TMPDIR:-/tmp}/adguard-filter.XXXXXX") || return 1
if ! awk -v target="$target" '
BEGIN { removed = 0 }
$0 == target { removed = 1; next }
{ print }
END { exit(removed ? 0 : 2) }
' "$file" > "$tmp"; then
rm -f "$tmp"
return 1
fi

if ! mv "$tmp" "$file"; then
rm -f "$tmp"
return 1
fi
}

echo "Entrez le domaine à supprimer :"
read -r domain
domain=$(echo "$domain" | tr -d '[:space:]')
Expand All @@ -14,21 +36,26 @@ if [[ -z "$domain" ]]; then
exit 1
fi

# Supprimer de Listing_raw.txt
if grep -qF "$domain" "$listing_file"; then
line_num=$(grep -nF "$domain" "$listing_file" | head -1 | cut -d: -f1)
sed -i '' "${line_num}d" "$listing_file"
echo "✅ Supprimé de $listing_file"
# Supprimer de Domain_list_raw.txt
if grep -qFx "$domain" "$listing_file"; then
if delete_exact_line "$domain" "$listing_file"; then
echo "✅ Supprimé de $listing_file"
else
echo "❌ Échec de suppression dans $listing_file"
exit 1
fi
else
echo "⚠️ Non trouvé dans $listing_file"
fi

# Supprimer de AdGuard_games_list.txt
if grep -qF "$domain" "$adguard_file"; then
line_num=$(grep -nF "$domain" "$adguard_file" | head -1 | cut -d: -f1)
sed -i '' "${line_num}d" "$adguard_file"
echo "✅ Supprimé de $adguard_file"
# Supprimer de AdGuard_games_streaming_social_list.txt
if grep -qFx "||${domain}^" "$adguard_file"; then
if delete_exact_line "||${domain}^" "$adguard_file"; then
echo "✅ Supprimé de $adguard_file"
else
echo "❌ Échec de suppression dans $adguard_file"
exit 1
fi
else
echo "⚠️ Non trouvé dans $adguard_file"
fi