我正在为网站制定 508 可访问标准。有一个 Firefox 插件可以帮助检查网站的每个页面 WAVE 插件
我有一个爬虫可以遍历网站的所有页面。
现在我想结合 WAVE 插件 + 我的爬虫来自动检查网站是否符合 508 可访问性合规性。
我的问题是如何从命令行运行具有特定 URL 的 Firefox 插件?
感谢您的帮助,
明
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
发布评论
评论(2)
编辑 2023 年,
解决方法阻止顶级数据:
进一步查看!从命令行运行 Firefox Extras。
您可以从命令行执行许多复杂的操作,如运行内联 JavaScript(我发布了彩色 RGB 淋浴 在另一个 bash 方法,在答案的底部)。
也许这可以帮助你:
这可以写成:
或者甚至:(
注意将Base64分割为4个字符的倍数!)
这与
chromium
相同,我相信,几乎每个浏览器......编辑2023:解决方法阻止顶级数据:
出于安全原因,从版本 57 开始,Firefox 不再打开此类链接。运行此命令行只会打开一个新窗口,并将整个
data:...
链接放入 location 字段中。我必须在新的 Firefox 窗口中点击:
location
字段,data:...
链接。然后
preferences
按钮,最后弹出窗口
。为了自动执行此操作,我使用
xdotool
(和xwininfo
,位于 bash)。(当然,我可以转到
about:config
,然后将security.data_uri.block_toplevel_data_uri_navigations
设置为security.data_uri.block_toplevel_data_uri_navigations
>false
,但我认为这是一个坏主意!)这个脚本可能会变得有用......只需根据您的需要编辑第一部分。
Edit 2023,
workaround Block toplevel data:
see further!Run firefox extras from command-line.
You could do many complex thing from comand line as running inline javascript (I've posted a Color RGB shower using
firefox 'data:text/html..
under Another bash approach, at bottom of answer).Maybe this could help you:
This could be written:
Or even:
(Care to split Base64 by multiple of 4 chars!)
This work same with
chromium
and, I believe, near every browser...Edit 2023: workaround Block toplevel data:
For security reason, from version 57, firefox doesn't no open this kind of links anymore. Running this command line will just open a new window and put the entire
data:...
link into location field.I will have to hit in the new firefox window:
location
field,data:...
link.Then
preferences
button, and finallypopups
.For doing this automatically, I use
xdotool
(andxwininfo
, under bash).( Of course, I could go to
about:config
, then setsecurity.data_uri.block_toplevel_data_uri_navigations
tofalse
, but I think this is a bad idea! )This script could comming to become usefull... Just edit 1st part for your need.
附加组件无法“运行”(例如,从命令行运行 Adblock 意味着什么?)。
如果您使用的附加组件不支持命令行参数。您可以编写一个检查命令行的扩展并调用任何其他添加的适当函数-你想“跑”。
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".