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; +})();