mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2026-02-26 04:27:48 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42800d31c1 | |||
| 9cab257540 | |||
| 5a8e8bb745 | |||
| 8a54056392 | |||
| 20c106d5fa | |||
| 137bd470cf | |||
| a312b0b2d4 |
@@ -6,7 +6,7 @@ app.init = function(){ // Init module
|
||||
browser.runtime.sendMessage({ cmd: app.Messages.Commands.settingsChanged });
|
||||
browser.browserAction.onClicked.addListener(function(e){
|
||||
if(app.settings.openQuickDialInNewPage) browser.tabs.create({});
|
||||
else browser.tabs.update(e.id, {url: '/dial'}).then();
|
||||
else browser.tabs.update(e.id, {url: '/dial.html'}).then();
|
||||
});
|
||||
browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded });
|
||||
app.ContextMenus.initMenu();
|
||||
@@ -22,7 +22,7 @@ app.init = function(){ // Init module
|
||||
browser.tabs.query({}).then( function(tabs) {
|
||||
tabs.forEach(function(itm){
|
||||
if(itm.url=='about:blank'){
|
||||
browser.tabs.update(itm.id, {url: browser.extension.getURL('dial')});
|
||||
browser.tabs.update(itm.id, {url: browser.runtime.getURL('dial.html')});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -290,7 +290,7 @@ app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context m
|
||||
browser.contextMenus.create({
|
||||
id: "pagemenu",
|
||||
title: "Quick Dial",
|
||||
documentUrlPatterns: [ 'moz-extension://*/dial', 'moz-extension://*/dial?*' ],
|
||||
documentUrlPatterns: [ 'moz-extension://*/dial.html', 'moz-extension://*/dial.html?*' ],
|
||||
contexts: ["page"]
|
||||
});
|
||||
browser.contextMenus.create({
|
||||
@@ -330,7 +330,7 @@ app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context m
|
||||
browser.contextMenus.create({
|
||||
id: "itemmenu",
|
||||
title: "Quick Dial",
|
||||
documentUrlPatterns: [ 'moz-extension://*/dial', 'moz-extension://*/dial?*' ],
|
||||
documentUrlPatterns: [ 'moz-extension://*/dial.html', 'moz-extension://*/dial.html?*' ],
|
||||
contexts: ["link"]
|
||||
});
|
||||
browser.contextMenus.create({
|
||||
@@ -563,8 +563,8 @@ app.SiteInfos.fromFrame = function(url, callback){ // Retrieve infos from an ifr
|
||||
iframe.style.position = 'absolute';
|
||||
iframe.scrolling = 'no';
|
||||
var content = xmlHttp.responseText.replace('<head>', '<head><base href="' + url + '">');
|
||||
iframe.onload = function(){ pageLoaded(); }
|
||||
document.body.appendChild(iframe);
|
||||
iframe.onload = function(){ pageLoaded(); }
|
||||
iframe.srcdoc = content;
|
||||
setTimeout(function(){ pageLoaded(); }, 6000);
|
||||
}
|
||||
@@ -886,7 +886,7 @@ app.GridNodes.capturePage = function(gridNode, callback){
|
||||
if(nodes){
|
||||
var path = '';
|
||||
for(var i=1; i<nodes.length; i++) path = path + '/' + nodes[i].title;
|
||||
app.SiteInfos.fromNewTab('/dial?path=' + path, function(infos){
|
||||
app.SiteInfos.fromNewTab('/dial.html?path=' + path, function(infos){
|
||||
if(infos){
|
||||
gridNode.image = infos.screenshot;
|
||||
} else {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
"manifest_version": 2,
|
||||
"name": "Quick Dial",
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.23",
|
||||
"author": "MatMoul",
|
||||
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
||||
"developer": {
|
||||
@@ -37,13 +37,16 @@
|
||||
},
|
||||
|
||||
"chrome_url_overrides" : {
|
||||
"newtab": "dial"
|
||||
"newtab": "dial.html"
|
||||
},
|
||||
|
||||
"applications": {
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "quickdial@matmoul.com",
|
||||
"strict_min_version": "70.0"
|
||||
"strict_min_version": "140.0",
|
||||
"data_collection_permissions": {
|
||||
"required": ["none"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user