SmartProxy
SmartProxy copied to clipboard
In Chrome keyboard shortcut for switching proxies should cycle
There is already a Switch to the next proxy server as the active proxy but can't switch back
or press again to cycle back to the first is the best
Please follow issue formats: https://github.com/salarcode/SmartProxy/issues/new/choose
You have not mentioned your browser! But I can guess you are talking about Chrome
There is a limitation on number of shortcuts on google chrome. Can't do anything about it.
But pressing again to cycle back is a good idea.
There is a limitation on number of shortcuts on google chrome. Can't do anything about it.谷歌浏览器上的快捷方式数量有限制。对此无能为力。
But pressing again to cycle back is a good idea.但再次按下循环返回是个好主意。
I have an idea. Since there may be conflicts with shortcut keys, is it a better implementation to click on the image to cycle and switch? I'm not sure about the technical details here, it's just a simple idea~~~
I have an idea. Since there may be conflicts with shortcut keys, is it a better implementation to click on the image to cycle and switch? I'm not sure about the technical details here, it's just a simple idea~~~
Click on icon opens the menu, can't do that
Related: #363
I have an idea. Since there may be conflicts with shortcut keys, is it a better implementation to click on the image to cycle and switch? I'm not sure about the technical details here, it's just a simple idea~~~
Click on icon opens the menu, can't do that
Yes, You're right. But if you delete default_popup from manifest.json, Adding some code to background.js should be able to implement it.
chrome.action.onClicked.addListener((tab) => {
// someCondition need to add a new setting
if (someCondition) {
chrome.action.setPopup({ tabId: tab.id, popup: 'popup.html' });
} else {
// Quick click switch
}
});
Then add a check option in the right-click icon menu, This way, you can cancel the quick switch settings
chrome.contextMenus.create({
title: XXX,
contexts: 'action',
id: XXX,
type:'checkbox',
checked:true
});
such as:
I have tried to look at the project code, but unfortunately, I have not developed a browser plugin. I searched for this information from Google and hope it can be helpful~
This ticket is for enhancing the proxy cycle shortcuts behaviour, for action click events behaviour see https://github.com/salarcode/SmartProxy/issues/363
Also the problem is that I don't have much free time
Shortcuts now will cycle at the end of the list. This is effective for both select next & select previous proxies. This will be out with the next release