A
A
Artem Blinov2017-07-06 16:05:08
Google Chrome
Artem Blinov, 2017-07-06 16:05:08

How to port extensions from Opera(chrome) to Firefox and also to Safari?

How to port extensions from Opera(chrome) to Firefox? When checking on the firefox site, a warning for the given lines and . (replaced from chrome to browser, but the problem was not solved)chrome.storage.local.get("adat", function(data) {chrome.storage.local.set({adat: texts});

Firefox add-on verification photo
e73625cfeb594fef90281b77f035bb5b.png

What could be the problem and how to fix it?
content.js code
var forcopy = document.body.getElementsByClassName("pull-left btn btn-search-pill");
    var texts = [];
    for ( var cs = 0; cs < forcopy.length; cs++ ) {
        texts.push(forcopy[cs].textContent); 
    }
    chrome.storage.local.set({adat: texts});
popup.js code
chrome.storage.local.get("adat", function(data) {
    if(typeof data.adat == "undefined") {

    } else {
        document.getElementById("shuttertexts").textContent = data.adat;
        document.getElementById("shuttertexts").select();
    }
});

Any instructions for building or porting an extension to safari? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Egorov, 2017-07-06
@egoroof

It also says - you need to specify id in the manifest:

...
"applications": {
    "gecko": {
        "id": "[email protected]"
    }
}
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question