Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: youtube
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 0.864 kB
<head><title>Tabby Options</title></head>
<script type="text/javascript">
// Saves options to localStorage.
function save_options() {
var input = document.getElementById("time_out");
var time_out = input.value;
localStorage["time_out"] = time_out;
// Update status to let user know options were saved.
var status = document.getElementById("status");
status.innerHTML = "Saved!";
setTimeout(function() {
status.innerHTML = "";
}, 750);
function init() {
var input = document.getElementById("time_out");
if (localStorage["time_out"]) {
input.value = localStorage["time_out"];
<body onload="init()">
<p>How many minutes should a tab be inactive for before Tabby closes it?</p>
<input id="time_out"></input>
<div id="status"></div>
<button onclick="save_options()">Save</button>
Jump to Line
Something went wrong with that request. Please try again.