Run firefox addons command-line
-
20-09-2019 - |
Question
I am working 508 accessible standard for a website. There are a Firefox plugin to help check on each page a website WAVE addons
I am having a crawler that walk throught all pages of the website.
Now i want to combine WAVE addons + my crawler to check website as 508 accessibility compliance automatically.
My question is how to run Firefox addons with a specific URL from command line?
Thanks for your help,
Minh
Solution
Add-ons can't be "run" (what does it mean to run Adblock from command line, for example?).
If the add-ons you're using do not support command-line params. you can write an extension that checks the command line and calls an appropriate function of the whatever other add-on you want to "run".
OTHER TIPS
You could do many complex thing from comand line as running inline javascript, maybe this could help you:
$ firefox 'data:text/html;charset=ISO-8859-1,
<html>
<head>
<title>TEST Demo</title>
</head>
<body>
<h3 id="title">Test demo</h3>
<script language="javascript">
window.open("http://perso.f-hauri.ch/~felix/svg/dustin_w_Clock_autonom.svg","clock","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=600,top=100,left=120");
window.open("http://perso.f-hauri.ch/~felix/svg/fw.svg","netrate","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=372,top=40,left=620");
var s=10;
function cntdwn()
{
document.getElementById("title").innerHTML="Test demo: "+s;s=s-1;
if (0 > s)
{
window.location="http://perso.f-hauri.ch/~felix/meteo/picture/meteo.html";
}
else window.setTimeout(cntdwn,1000);
};
window.onload=cntdwn;
</script>
</body>'