src/interface.js
// createOptionsButton() - Creates the button that opens the options menu
Creates the button that opens the options menu
Creates the button that opens the options menu
function createOptionsButton()
	{
		var elem = document.createElement("a"),
			optionsOpen = false;
		elem.setAttribute("id", "ytd-options-button");
		elem.setAttribute("href", "javascript:;");
		elem.innerHTML = T("button-options");
		elem.addEventListener("click", function() {
			optionsOpen = !optionsOpen;
			self.options.style.display = optionsOpen ? "" : "none";
			elem.innerHTML = optionsOpen ? T("button-options-close") : T("button-options");
		});
		return elem
	}
function createOptionsButton ( ) { var elem = document . createElement ( "a" ) , optionsOpen = false ; elem . setAttribute ( "id" , "ytd-options-button" ) ; elem . setAttribute ( "href" , "javascript:;" ) ; elem . innerHTML = T ( "button-options" ) ; elem . addEventListener ( "click" , function ( ) { optionsOpen = ! optionsOpen ; self . options . style . display = optionsOpen ? "" : "none" ; elem . innerHTML = optionsOpen ? T ( "button-options-close" ) : T ( "button-options" ) ; } ) ; return elem }
createOptionsButton() - Creates the button that opens the options menu
createOptionsButton () - Creates the button that opens the options menu