Redirects a few JavaScript libraries hosted on Google's CDN (ajax.googleapis.com) to Microsoft's CDN (ajax.aspnetcdn.com)

Latest Version

Version
0.1.2
Update
May 7, 2022
Size
26.57KiB
Developer
Category
Users
241
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
中文 (简体)
See more
Permissions
DeclarativeNetRequest
See more

Google CDN to Microsoft CDN Extension

Websites which try to load the following JavaScript libraries hosted on Google's CDN (ajax.googleapis.com) will quietly have the request redirected to Microsoft's CDN (ajax.aspnetcdn.com):

1) ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js
2) ajax.googleapis.com/ajax/libs/jquerymobile/1.2.3/jquery.mobile.min.js
3) ajax.googleapis.com/ajax/libs/jqueryui/1.2.3/jquery-ui.min.js
4) ajax.googleapis.com/ajax/libs/jqueryui/1.2.3/themes/*/jquery-ui.css
5) ajax.googleapis.com/ajax/libs/hammerjs/1.2.3/hammer.min.js

This should allow websites like Stack Overflow (www.stackoverflow.com) to work as normal should your company's firewall happen to be blocking Google's CDN.

Just one more thing...

This extension uses \"declarativeNetRequest\" to perform the redirection, instead of using \"webRequest\". This means you can use this extension with confidence because this extension cannot spy on you. It also means the redirection will consume less memory and will be handled directly by the browser meaning it will run faster than usual.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "__MSG_extName__", "author": "Terry", "version": "0.1.2", "description": "__MSG_extDesc__", "manifest_version": 3, "default_locale": "en", "offline_enabled": true, "icons": { "24": "icon_24.png", "48": "icon_48.png", "96": "icon_96.png", "128": "icon_128.png" }, "declarative_net_request": { "rule_resources": [{ "id": "myrules", "enabled": true, "path": "rules.json" }] }, "background": { "service_worker": "background.js" }, "permissions": ["declarativeNetRequest"], "host_permissions": ["*://*/*"]}
Read more