用FireBreath來編寫跨瀏覽器外掛程式

2022-03-23 04:38:29 字數 977 閱讀 9856

這是對於公司某個需求的臨時研究,最後經過簡單實驗放棄了這個方案,因為編寫外掛程式不能滿足需求。

下面著重講一下firebreath編譯。

git clone git:firebreath-dev

git submodule update --recursive --init

我用的是cmake來編譯,編譯成vs2013的nmake makefiles

開啟vs2013 x86本地工具命令提示,然後修改prep2013.cmd檔案,修改如下:

1

@echo

off & setlocal

enableextensions enabledelayedexpansion

23 @set _fb_gen="visual studio 12"

4set _fb_gen="nmake makefiles"56

call "%~d0%~p0\common.cmd"%*

7if %errorlevel% == 2 exit /b 1

8call "%~d0%~p0\winprep.cmd"

然後執行,

prep2013.cmd examples build

你會發現原始碼根目錄下直接新建了乙個build目錄,裡面自動生成了nmake的makefile檔案,然後cd進build,執行nmake命令,ok,等待編譯完成吧,

firebreath的官方樣例也編譯好了。

最後用regsvr32 [plugin_name].dll來安裝外掛程式就可以了。

references:

display/documentation/getting+started

display/documentation/deploying+and+updating+your+plugin#deployingandupdatingyourplugin-firefox

用python來編寫TSP問題

import math from os import path import numpy as np import matplotlib.pyplot as plt class tspinstance 設計乙個類,實現從檔案讀入乙個旅行商問題的例項 檔案格式為 city number best kn...

用C 來編寫通訊錄資料結構

1.包括 的iostream 裡的定義 iostream 輸入輸出流標準的輸入輸出流標頭檔案,包含兩個基本操作 1 cin 要輸入的內容 2 cout 要輸出的內容 特別是 iostream和iostream.h的區別 iostream.h是在舊的標準中使用 iostream是在新標準中使用,標準的...

用路徑分析法來編寫測試用例

熟悉 測試理論的人都知道,路徑覆蓋是 白盒測試中一種很重要的方法,廣泛應用於 單元測試。那麼基於路徑覆蓋的分析方法是不是只能應用於單元測試呢,能不能將其推而廣之呢。一般而言,在單元測試中,路徑就是指函式 的某個分支,而實際上如果我們將軟體系統的某個流程也看成路徑的話,我們將可以嘗試著用路徑分析的方法...