YT - Annotation Downloader

Downloads annotations from YouTube videos with CTRL+A on any video page

This script is marked as "broken" and is likely not working
Details: YouTube deleted all annotations. The script is broken now
Click here to install Browse More Scripts
// ==UserScript==
// @name         YT - Annotation Downloader
// @namespace    b0bf7c69ed19353971a5d597b9535c0031623f5e
// @version      0.2
// @description  Downloads annotations from YouTube videos with CTRL+A on any video page
// @author       /u/AyrA_ch
// @match        https://www.youtube.com/*
// @grant        none
// @run-at       document-start
// @expired      true
// @broken       YouTube deleted all annotations. The script is broken now
// ==/UserScript==

// Version
// 0.2 Disabled script since annotations were wiped.
// 0.1 Initial version

(function () {
	"use strict";
	//Note: This should work regardless of the currently used design
	document.addEventListener("keydown", function (e) {
		if ((e.ctrl || e.ctrlKey) && e.keyCode === 65) {
			//only accept key if not in a text box
			if (e.target && e.target.nodeName !== "INPUT" && e.target.nodeName !== "TEXTAREA" && !e.target.getAttribute("contenteditable")) {
				e.preventDefault();
				e.stopPropagation();
				alert("All annotations were deleted. You can delete the Youtube Annotation Downloader script");
				/* Below is the old code for those interested
				//Extract video id (see https://cable.ayra.ch/help/#youtube_id for details why the regex is the way it looks)
				var m = location.href.match(/=([\w\-]{10}[AEIMQUYcgkosw048])=?/);
				if (m) {
					location.href = 'https://cable.ayra.ch/ytdl/annotations.php?id=' + m[1];
				}
				//*/
			}
		}
	});
})();

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 54.236.62.49