Compare commits

..

2 commits

4 changed files with 14 additions and 50 deletions

View file

@ -1,15 +1,10 @@
# Talkdesk User Agent Switcher
[<img src="https://get.microsoft.com/images/en-us%20dark.svg" width="200"/>][edge-extensions-page]
A super-simple extension that spoofs the user-agent's request header for the sole purpose of being able to access the [Talkdesk][talkdesk] web services in browsers other than Google Chrome, because they previously had a check to only allow Chrome in
**This extension is no longer needed, since Talkdesk has now changed course and added Microsoft Edge as a supported browser. An update has been submitted to the Edge Extension store that would automatically uninstall the extension, and hide the page.**
[The self-destruct version of this extension can be found here][selfdestruct-branch]
A super-simple extension that spoofs the user-agent's request header for the sole purpose of being able to access the [Talkdesk][talkdesk] web services in browsers other than Google Chrome, because they decided to hardcode a check to only allow Chrome in 😠
Based on the work done in this project to enable this using the latest Manifest v3: [ray-lothian/UserAgent-Switcher][upstream-repo]
[edge-extensions-page]: https://microsoftedge.microsoft.com/addons/detail/talkdesk-user-agent-switc/mkkahlmcnnaoffchdmihlpfjogfgocpn
[upstream-repo]: https://github.com/ray-lothian/UserAgent-Switcher
[talkdesk]: https://www.talkdesk.com/
[selfdestruct-branch]: https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher/src/branch/selfdestruct
[talkdesk]: https://www.talkdesk.com/

View file

@ -1,17 +1,8 @@
{
"manifest_version": 3,
"name": "Talkdesk User Agent Switcher",
"version": "1.0.1",
"description": "Sets the User Agent header to one from Google Chrome when accessing Talkdesk sites, as they block any other User Agent.",
"permissions": [
"declarativeNetRequestWithHostAccess"
],
"host_permissions": [
"*://*.talkdesk.com/*",
"*://*.talkdeskid.com/*",
"*://*.mytalkdesk.com/*",
"*://*.talkdeskapp.com/*"
],
"version": "2.0.0",
"description": "An extension that set the User Agent header when accessing Talkdesk sites, as they previously blocked any other User Agent.",
"icons": {
"16": "icons/icon-16.png",
"32": "icons/icon-32.png",
@ -20,14 +11,8 @@
"128": "icons/icon-128.png",
"256": "icons/icon-256.png"
},
"declarative_net_request": {
"rule_resources": [
{
"id": "talkdesk_useragent_ruleset",
"enabled": true,
"path": "talkdesk_useragent_rule.json"
}
]
},
"homepage_url": "https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher"
}
"homepage_url": "https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher",
"background": {
"service_worker": "service-worker.js"
}
}

View file

@ -0,0 +1,5 @@
chrome.runtime.onInstalled.addListener(() => {
chrome.management.uninstallSelf({
"showConfirmDialog": false
});
});

View file

@ -1,21 +0,0 @@
[
{
"id": 1,
"priority": 1,
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{
"operation": "set",
"header": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
}
]
},
"condition": {
"resourceTypes": [
"main_frame"
]
}
}
]