System Daquan teaches you how to get rid of Youku's 30-second ad

  
Youku's ads are especially rare, and it is rarely used to watch videos online, but sometimes there are other websites of a video, Youku will have it. It's advertising. But recently I have seen more comparisons of Youku, but I still have to think of ways to solve them! Xp system download 1, first delete the browser history. Open IE, press Ctrl+Shift+Del to delete the browser history, and then close IE browser:
2. If you do not delete the buffer first, or close the browser, the mask function will not take effect immediately after setting. 3. Open Notepad and copy the following to Notepad:

@ECHO OFF

COLOR 0A

:head

cls

TITLE Shield Ku6, Youku, Tudou, Thunder and other online video buffer ads

::ECHO Screening Ku6, Youku, Potato, Thunder and other online video buffer ads

echo.&echo.

echo ┌───────:: Block video ads::────────┐

echo │ │

echo │ 1. Need to block video ads (rewrite host file after backup) │

echo │ │

echo │ 2.Do not block video ads (restore host files) │

echo │ │

echo │ 3. Handling video black screen issues │

echo │ │

echo │ 0.Exit │

echo │ │

echo └────────────────────────┘

echo.

set /ps El= Please enter (1,2,3,0):

echo %sel%| Findstr /be "[0-3]*" >nul &&goto:sta| | (echo input error, please re-enter &echo.&pause&goto:head)

:sta

if %sel%==1 set words=need to block video ads & Goto:backup

if %sel%==2 set words=Do not block video ads&goto:recover

if %sel%==3 set words=Processing video black screen issues& Goto:black

if %sel%==0 exit

echo selected %sel%, which will be set to [words]

echo.&%0

:backup

TITLE is backing up the host file

ECHO.&ECHO is backing up the host file

if exist %windir%\\system32\\drivers\\etc\\ Hosts.bak (echo backup file already exists, no backup) else (copy %windir%\\system32\\drivers\\etc\\hosts %windir%

\\system32\\drivers\\etc\\hosts.bak&if exist %windir%\\system32\\drivers\\etc\\hosts.bak echo Backup completed)

TITLE is completing the masking function

ECHO.&ECHO is completing the blocking function

> ;>%windir%\\system32\\drivers\\etc\\hosts echo.

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 atm.youku.com

>>%windir%\\system32\\driv Ers\\etc\\hosts echo 127.0.0.1 Fvid.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 html.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valb.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\ Hosts echo 127.0.0.1 valc.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valo.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valp.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0. 0.1 valf.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 lstat.youku.com

>>%windir %\\system32\\drivers\\etc\\hosts echo 127.0.0.1 speed.lstat.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 urchin.lstat.youku .com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 stat.youku.com

>>%windir%\\system32\\drivers\\ Etc\\hosts echo 127.0.0.1 static.lstat.youku.com

>>%windir%\\s Ystem32\\drivers\\etc\\hosts echo 127.0.0.1 vid.atm.youku.com

>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 walp.atm.youku.com

ipconfig /flushdns >nul

echo.

TITLE Shielding completed, please check if it is successful

ECHO Shielding completed, please check if it succeeds

pause

goto:head

:recover

CLS

TITLE does not block ads, restore host files

ECHO .&ECHO does not block ads, restore host files

if exist %windir%\\system32\\drivers\\etc\\hosts.bak (copy /y %windir%\\system32\\drivers\\etc\\hosts.bak % Windir%\\system32\\drivers\\etc\\hosts) else

(echo.&echo backup file does not exist, cannot be restored)

ipconfig /flushdns >nul

ECHO.

pause

goto:head

:black

TITLE handles video black screen issues

ECHO handles video black screen issues

dir "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\" /ad/b >%SystemDrive%\\DirTmp.txt

for /f %%a in (%SystemDrive%\\DirTmp.txt) do rd /s /q " %userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\%%a"

md "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\static.youku.com"< Br>

attrib +a "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\static.youku.com"

del /f /q %SystemDrive%\\DirTmp.txt< Br>

ECHO.&ECHO operation is complete!

pause

goto:head

:end

exit

Copyright © Windows knowledge All Rights Reserved