src/update-uso.js
// number. If there is, inform the Interface module.
number. If there is, inform the Interface module.
number . If there is inform the Interface module .
function check()
	{
		delete localStorage["ytd-update-version"];
		delete localStorage["ytd-last-update"];
		window.addEventListener("message", function(event) {
			if (!event.data)
				return;
			var remoteVersion = /^\/\/ @version\s+(.+)$/m.exec(event.data)[1];
			if (remoteVersion)
			{
				localStorage["ytd-last-update"] = Date.now();
				localStorage["ytd-update-version"] = remoteVersion;
				if (remoteVersion != version)
					Interface.notifyUpdate();
			}
		}, false);
		var iframe = document.createElement("iframe");
		iframe.setAttribute("src", "https://userscripts.org/scripts/source/62634.meta.js");
		iframe.setAttribute("style", "position: absolute; left: -1px; top: -1px; width: 1px; height: 1px; opacity: 0;");
		document.body.appendChild(iframe);
	}
function check ( ) { delete localStorage [ "ytd-update-version" ] ; delete localStorage [ "ytd-last-update" ] ; window . addEventListener ( "message" , function ( event ) { if ( ! event . data ) return ; var remoteVersion = / ^\/\/ @version\s+(.+)$ / m . exec ( event . data ) [ 1 ] ; if ( remoteVersion ) { localStorage [ "ytd-last-update" ] = Date . now ( ) ; localStorage [ "ytd-update-version" ] = remoteVersion ; if ( remoteVersion != version ) Interface . notifyUpdate ( ) ; } } , false ) ; var iframe = document . createElement ( "iframe" ) ; iframe . setAttribute ( "src" , "https://userscripts.org/scripts/source/62634.meta.js" ) ; iframe . setAttribute ( "style" , "position: absolute; left: -1px; top: -1px; width: 1px; height: 1px; opacity: 0;" ) ; document . body . appendChild ( iframe ) ; }
number.
number .