File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 3 ,
33 "name" : " MSDocs Easy Switch Lang" ,
4- "version" : " 1.0.1 " ,
4+ "version" : " 1.0.2 " ,
55 "description" : " Easy switch lang button on msdocs for Microsoft Edge." ,
66 "default_locale" : " en" ,
77 "icons" : {
1616 " tabs"
1717 ],
1818 "host_permissions" : [
19- " https://docs.microsoft.com/*"
19+ " https://docs.microsoft.com/*" ,
20+ " https://learn.microsoft.com/*" ,
21+ " https://support.microsoft.com/*"
2022 ],
2123 "background" : {
2224 "service_worker" : " scripts/background.js"
Original file line number Diff line number Diff line change 22 * Switch the language of the page
33 */
44chrome . action . onClicked . addListener ( function ( tab ) {
5- if ( tab . url . includes ( "https://docs.microsoft.com/" ) ) {
5+ if ( tab . url . includes ( "https://docs.microsoft.com/" )
6+ || tab . url . includes ( "https://learn.microsoft.com/" )
7+ || tab . url . includes ( "https://support.microsoft.com/" ) ) {
68 var currentLang = tab . url . split ( "/" ) [ 3 ] ; // ja-jp, en-us
79 var uiLang = chrome . i18n . getUILanguage ( ) ; // ja, en-us
810
You can’t perform that action at this time.
0 commit comments