-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathyt_pause.user.js
25 lines (24 loc) · 972 Bytes
/
yt_pause.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name Youtube HTML5 autopause
// @description autopause for yt html5
// @author Martin Hradil <himdel@seznam.cz>
// @namespace http://himdel.mine.nu/
// @include http://youtube.com/watch?*
// @include http://*.youtube.com/watch?*
// @include http://youtube.com/watch#*
// @include http://*.youtube.com/watch#*
// @include http://*.youtube.com/embed/*
// @include http://youtube.com/embed/*
// @include https://youtube.com/watch?*
// @include https://*.youtube.com/watch?*
// @include https://youtube.com/watch#*
// @include https://*.youtube.com/watch#*
// @include https://*.youtube.com/embed/*
// @include https://youtube.com/embed/*
// @version 2011-08-01
// ==/UserScript==
window.addEventListener('load', function() {
var video = document.getElementsByTagName('video')[0];
video.pause();
video.currentTime = 0;
}, false);