QB64 Phoenix Edition
Adgrab for Youtube - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7)
+---- Thread: Adgrab for Youtube (/showthread.php?tid=2533)



Adgrab for Youtube - SquirrelMonkey - 03-20-2024


Code: (Select All)
_Title "Ad grabber"
Screen _NewImage(1, 1, 8)
idc$ = "addocid" + Chr$(34) + ": " + Chr$(34)
p = 1
While p <= Len(_Clipboard$)
    ls = InStr(p, _Clipboard$, Chr$(13))
    le = InStr(p, _Clipboard$, Chr$(13))
    If le = 0 Then
        le = Len(_Clipboard$) + 1
    End If
    line$ = Mid$(_Clipboard$, ls, le - ls)
    If InStr(UCase$(line$), UCase$(idc$)) > 0 Then
        sp = ls + InStr(UCase$(line$), UCase$(idc$)) + Len(idc$)
        natxt$ = Mid$(_Clipboard$, sp, 11)
        _Clipboard$ = "https://www.youtube.com/watch?v=" + natxt$
        GoTo done
        Exit While
    End If
    p = le + 1
Wend
done:
If natxt$ = "" Then Sound 44, 2: _Delay 1: System
Sound 1000, 1
_Delay 2
System
I made this simple program to reveal the URL of Youtube ads, including unlisted videos.
At times, you come across a YouTube advertisement that you'd like to share or rewatch.
However, the challenge arises when you can't access the advertisement's URL, only the subsequent video URL.
Also, the ads are often 'unlisted', so you can't even find them with the search function of YouTube.

With Adgrab, it's possible!

Instructions:
1) Right-click on the YouTube ad and select "copy debug info."
2) Open Adgrab.
3) After you hear a high-pitched tone, you can open the video in your browser with Ctrl-V.
If you hear a low-pitched tone, something went wrong.


RE: Adgrab for Youtube - bplus - 03-21-2024

do you have something for ad removing?

Every now and then You tube blocks my ad blocker in browser and I am stuck having to exit browser and reset computer.