Nevermind this. Lack of help pushed me to Chrome.
It has what I need out of Chrome’s WebStore.
Thank you anyway.
My LCD sucks so I created this addon to filter the video tag and hopefully add some brightness to videos. The code works ok on a regular page, with the video in it. But not as an addon. My skills are limited enough to create up to this, but doesn’t work.
I have a manifest, popup.html with the slider and at the end calling jquery then the script.
popup.html
<div>
<label><strong>Brightness</strong><code><span id="brightness-val">1</span></code></label>
<input id="brightness" type="range" min="1" max="3" step="0.01" value="1" />
</div>
<script src='jquery.min.js'></script>
<script src="script.js"></script>
script.js
$("input").on('change',function () {
var brightness = $("#brightness").val();
var filters = "brightness(" + brightness + ")";
var videoTag = document.getElementsByTagName("video");
$(videoTag).css('-webkit-filter', filters);
$("#brightness-val").text(brightness);
});
manifest.json
{
"manifest_version": 2,
"name": "Filters",
"description": "video filter",
"version": "1.0",
"permissions": [
"activeTab"
],
"browser_action": {
"default_title": "Filter",
"default_popup": "popup.html",
"default_icon": {
"48": "icon.png"
}
},
"page_action": {
"browser_style": true
},
}
I am over-extending the reach of my know-how because there is not such addon for Mozilla, only ChromeStore offers video filters for html5 videos. So any help would be appreciated.