if (['Google Chrome', 'Google Chrome Canary', 'Chromium', 'Opera', 'Vivaldi', 'Brave'].indexOf(frontmost_app_name) > -1) {
var current_tab_title = frontmost_app.windows[0].activeTab.name();
var current_tab_url = frontmost_app.windows[0].activeTab.url();
} else if (['Safari', 'Safari Technology Preview', 'Webkit'].indexOf(frontmost_app_name) > -1) {