first commit

This commit is contained in:
Eliezer Croitoru 2024-08-18 02:49:05 +03:00
commit 703f276458
3 changed files with 27 additions and 0 deletions

6
allowed.txt Normal file
View File

@ -0,0 +1,6 @@
https://i.ytimg.com/vi/ns0WFtZncB0
https://i.ytimg.com/an_webp/ns0WFtZncB0
https://i.ytimg.com/sb/ns0WFtZncB0
https://youtu.be/ns0WFtZncB0
https://www.youtube.com/watch?v=ns0WFtZncB0
https://youtube.com/watch?v=ns0WFtZncB0

6
blocked.txt Normal file
View File

@ -0,0 +1,6 @@
https://i.ytimg.com/vi/3rbcPeJPXTg
https://i.ytimg.com/an_webp/3rbcPeJPXTg
https://i.ytimg.com/sb/3rbcPeJPXTg
https://youtu.be/3rbcPeJPXTg
https://www.youtube.com/watch?v=3rbcPeJPXTg
https://youtube.com/watch?v=3rbcPeJPXTg

15
gen-urls-for-vid.rb Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env ruby
vid = ARGV[0]
patterns = []
patterns << "https://i.ytimg.com/vi/###VID###"
patterns << "https://i.ytimg.com/an_webp/###VID###"
patterns << "https://i.ytimg.com/sb/###VID###"
patterns << "https://youtu.be/###VID###"
patterns << "https://www.youtube.com/watch?v=###VID###"
patterns << "https://youtube.com/watch?v=###VID###"
patterns.each do |p|
puts("#{p.gsub("###VID###", vid)}")
end