Compare commits
2 commits
main
...
selfdestru
Author | SHA1 | Date | |
---|---|---|---|
0329d4b6f0 | |||
7c3c54bad7 |
4 changed files with 14 additions and 50 deletions
|
@ -1,15 +1,10 @@
|
||||||
# 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 previously had 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 decided to hardcode 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,17 +1,8 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Talkdesk User Agent Switcher",
|
"name": "Talkdesk User Agent Switcher",
|
||||||
"version": "1.0.1",
|
"version": "2.0.0",
|
||||||
"description": "Sets the User Agent header to one from Google Chrome when accessing Talkdesk sites, as they block any other User Agent.",
|
"description": "An extension that set the User Agent header when accessing Talkdesk sites, as they previously blocked 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",
|
||||||
|
@ -20,14 +11,8 @@
|
||||||
"128": "icons/icon-128.png",
|
"128": "icons/icon-128.png",
|
||||||
"256": "icons/icon-256.png"
|
"256": "icons/icon-256.png"
|
||||||
},
|
},
|
||||||
"declarative_net_request": {
|
"homepage_url": "https://scm.gruezi.net/buckbanzai/talkdesk-useragent-switcher",
|
||||||
"rule_resources": [
|
"background": {
|
||||||
{
|
"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"
|
|
||||||
}
|
|
5
talkdesk-useragent-switcher/service-worker.js
Normal file
5
talkdesk-useragent-switcher/service-worker.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
chrome.runtime.onInstalled.addListener(() => {
|
||||||
|
chrome.management.uninstallSelf({
|
||||||
|
"showConfirmDialog": false
|
||||||
|
});
|
||||||
|
});
|
|
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
Loading…
Reference in a new issue