📜  删除所有搜索引擎 chrome - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:03.559000             🧑  作者: Mango

代码示例1
settings.SearchEnginesBrowserProxyImpl.prototype.getSearchEnginesList()
    .then(function(val) {
        val.others.sort(function(a, b) { return b.modelIndex - a.modelIndex; });
        val.others.forEach(function(engine) {
            settings.SearchEnginesBrowserProxyImpl.prototype.removeSearchEngine(engine.modelIndex);
        });
    });