From e9e47636851dabdd4507ce558ffe5096158e2ab7 Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 10 Oct 2024 15:06:13 -0400 Subject: [PATCH] created --- README.md | 5 +++++ adskip.js | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 README.md create mode 100644 adskip.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..3a2ea2e --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# adskip + +A JavaScript scriptlet for use as a browser toolbar button to skip the currently playing video on a page. It just happens to be useful for skipping YouTube ads and similar by finding the first playing video on a page, and slamming its current position to the end of the file in one simple button click. + +"Video will play shortly," becomes, "Video will play now, bitch. Shut up." diff --git a/adskip.js b/adskip.js new file mode 100644 index 0000000..1013752 --- /dev/null +++ b/adskip.js @@ -0,0 +1,4 @@ +javascript: (function () { + var video = document.querySelector("video"); + video.currentTime = video.duration; +})();