2

我有一些Chrome擴展,我想轉換爲Opera擴展。我明白從Opera 15他們都使用相同的Chromium架構來進行擴展,但我甚至無法識別Opera清單。將Chrome擴展轉換爲Opera擴展

我的Chrome清單如下:

{ 
    "name": "How Do You Do This In SAS?", 
    "description": "How Do You Do This in SAS? is a free introduction to a series of eBooks about SAS software programming.", 
    "version": "2.1.0", 
    "manifest_version": 2, 
    "icons": { 
    "16": "icon16x16.png", 
    "128": "icon128x128.png"}, 
    "app": { 
    "launch": { 
     "local_path": "index.html" 
    } 
    } 
} 

我的index.html文件中包含的應用程序數據而結束:

 <script type="text/javascript" src="source/load.js"></script> 
    </body> 
</html> 

的load.js文件包含:

new howsas00c().renderInto(document.body); 

howsas00c.js腳本使用Enyo 1.0框架,它在index.html中加載。

那麼我從哪裏開始修復清單?

  • 我添加了一個48x48圖標。
  • 我認爲歌劇清單不認識以下幾點:
"app": { 
    "launch": { 
     "local_path": "index.html" 
    } 
    } 

但是我將其替換爲...............? .Phil

回答

1

是的,你是對的。問題是以「app」開頭的代碼。您實際上已準備好Chrome應用程序而不是擴展程序,Opera尚不支持應用程序您應該將其重寫爲擴展名(如果它適用於您的應用程序)。看到這個文件,以獲得差異:https://developers.google.com/chrome/web-store/articles/apps_vs_extensions

+0

看起來我必須等待Opera趕上Chrome。我的「擴展」是作爲一個應用程序實現的,根據這篇文章不是擴展。 :-( – hollandnumerics