Compare commits
1 commit
selfdestru
...
main
Author | SHA1 | Date | |
---|---|---|---|
10b4353681 |
4 changed files with 50 additions and 14 deletions
|
@ -1,10 +1,15 @@
|
||||||
# Talkdesk User Agent Switcher
|
# Talkdesk User Agent Switcher
|
||||||
[<img src="https://get.microsoft.com/images/en-us%20dark.svg" width="200"/>][edge-extensions-page]
|
[<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 decided to hardcode a check to only allow Chrome in 😠
|
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]
|
||||||
|
|
||||||
Based on the work done in this project to enable this using the latest Manifest v3: [ray-lothian/UserAgent-Switcher][upstream-repo]
|
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
|
[edge-extensions-page]: https://microsoftedge.microsoft.com/addons/detail/talkdesk-user-agent-switc/mkkahlmcnnaoffchdmihlpfjogfgocpn
|
||||||
[upstream-repo]: https://github.com/ray-lothian/UserAgent-Switcher
|
[upstream-repo]: https://github.com/ray-lothian/UserAgent-Switcher
|
||||||
[talkdesk]: https://www.talkdesk.com/
|
[talkdesk]: https://www.talkdesk.com/
|
||||||
|
[selfdestruct-branch]: https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher/src/branch/selfdestruct
|
|
@ -1,8 +1,17 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Talkdesk User Agent Switcher",
|
"name": "Talkdesk User Agent Switcher",
|
||||||
"version": "2.0.0",
|
"version": "1.0.1",
|
||||||
"description": "An extension that set the User Agent header when accessing Talkdesk sites, as they previously blocked any other User Agent.",
|
"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/*"
|
||||||
|
],
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "icons/icon-16.png",
|
"16": "icons/icon-16.png",
|
||||||
"32": "icons/icon-32.png",
|
"32": "icons/icon-32.png",
|
||||||
|
@ -11,8 +20,14 @@
|
||||||
"128": "icons/icon-128.png",
|
"128": "icons/icon-128.png",
|
||||||
"256": "icons/icon-256.png"
|
"256": "icons/icon-256.png"
|
||||||
},
|
},
|
||||||
"homepage_url": "https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher",
|
"declarative_net_request": {
|
||||||
"background": {
|
"rule_resources": [
|
||||||
"service_worker": "service-worker.js"
|
{
|
||||||
}
|
"id": "talkdesk_useragent_ruleset",
|
||||||
|
"enabled": true,
|
||||||
|
"path": "talkdesk_useragent_rule.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"homepage_url": "https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher"
|
||||||
}
|
}
|
|
@ -1,5 +0,0 @@
|
||||||
chrome.runtime.onInstalled.addListener(() => {
|
|
||||||
chrome.management.uninstallSelf({
|
|
||||||
"showConfirmDialog": false
|
|
||||||
});
|
|
||||||
});
|
|
21
talkdesk-useragent-switcher/talkdesk_useragent_rule.json
Normal file
21
talkdesk-useragent-switcher/talkdesk_useragent_rule.json
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue