New to Chrome programming, but am more or less familiar with Javascript.
Goal:
A Chrome add-on that will allow me to:
1) Right-click on an link
2) then add a some more characters to that link
3) then reload the page with the new constructed URL.
EX:
A. Object has a link : http://www.address.com/34922
B. User righ-clicks on that object (Chrome’s menu appears [which I know how to mod]), a menu option appears ‘reconstruct rul.’
C. The add-on adds ‘/subfolderA’ to the above mentioned url.
D. Page reloads with the following URL: http://www.address.com/34922/subfolderA
Thanks,
Steve
Use the
chrome.contextMenusAPI, more specifically thecreatemethod.Relevant documentation
Used methods:
chrome.contextMenusAPIchrome.tabs.create(<object createProperties>)chrome.tabsAPIchrome.tabs.update(<integer tabId>, <object updateProperties>)Further reading: