Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Video Skip
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author janisplayer
- // @match *://*.youtube.com/*
- // @grant none
- // ==/UserScript==
- /*(function() {
- //pausecomp(100);
- var els = document.getElementsByTagName("*");
- for(var i = 0, l = els.length; i < l; i++) {
- var el = els[i];
- el.innerHTML = el.innerHTML.replace("0&controls=0&", '0&controls=1&'); // https://www.youtube.com/embed/FhYQU5eWdCo?enablejsapi=1&autoplay=1&disablekb=1&modestbranding=0&rel=0&controls=0&origin=https://watch.getalx.com&playsinline=1
- }
- })();
- */
- /*
- function main() {
- var videoElement = document.getElementsByTagName("video")[0];
- //videoElement.playbackRate = 18;
- if (videoElement.played = true) {
- }
- if (videoElement.duration = !null) {
- }
- videoElement.currentTime = videoElement.duration;
- alert(videoElement.duration);
- //videoElement.ended
- }
- function wait(ms){
- var start = new Date().getTime();
- var end = start;
- while(end < start + ms) {
- end = new Date().getTime();
- }
- }
- main();
- */
- (function() {
- var videoElement = document.getElementsByTagName("video")[0];
- videoElement.currentTime = 100000;
- })();
- //Infos zu den Funktionen von videoElement https://developer.mozilla.org/de/docs/Web/API/HTMLMediaElement
Add Comment
Please, Sign In to add comment