Source

Forrst Fire / forrst fire.safariextension / fire.html

<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title>Forrst Fire</title>
	<script type="text/javascript" charset="utf-8">
		function respondToMessage(messageEvent) {
			if (messageEvent.name == "getSettingValue") {
				var value = safari.extension.settings.getItem(messageEvent.message);
				safari.application.activeBrowserWindow.activeTab.page.dispatchMessage("settingValueIs", 
value);
			}
		}

		safari.application.addEventListener("message", respondToMessage, false);
	</script>
</head>
<body></body> </html>