| ofs | hex dump | ascii |
|---|
| 0000 | 30 5c 72 a7 1b 6d fb fc 05 00 00 00 04 00 00 00 e4 8a e8 6f 00 00 00 00 31 36 30 39 27 75 73 65 | 0\r..m.............o....1609'use |
| 0020 | 20 73 74 72 69 63 74 27 3b 0a 0a 63 6f 6e 73 74 20 45 58 54 45 4e 53 49 4f 4e 5f 4e 41 4d 45 20 | .strict';..const.EXTENSION_NAME. |
| 0040 | 3d 20 27 4b 65 65 50 61 73 73 58 43 2d 42 72 6f 77 73 65 72 27 3b 0a 63 6f 6e 73 74 20 44 45 46 | =.'KeePassXC-Browser';.const.DEF |
| 0060 | 49 4e 45 44 5f 43 55 53 54 4f 4d 5f 46 49 45 4c 44 53 20 3d 20 27 64 65 66 69 6e 65 64 2d 63 75 | INED_CUSTOM_FIELDS.=.'defined-cu |
| 0080 | 73 74 6f 6d 2d 66 69 65 6c 64 73 27 3b 0a 0a 2f 2f 20 53 69 74 65 20 50 72 65 66 65 72 65 6e 63 | stom-fields';..//.Site.Preferenc |
| 00a0 | 65 73 20 69 67 6e 6f 72 65 20 6f 70 74 69 6f 6e 73 0a 63 6f 6e 73 74 20 49 47 4e 4f 52 45 5f 4e | es.ignore.options.const.IGNORE_N |
| 00c0 | 4f 54 48 49 4e 47 20 3d 20 27 69 67 6e 6f 72 65 4e 6f 74 68 69 6e 67 27 3b 0a 63 6f 6e 73 74 20 | OTHING.=.'ignoreNothing';.const. |
| 00e0 | 49 47 4e 4f 52 45 5f 4e 4f 52 4d 41 4c 20 3d 20 27 69 67 6e 6f 72 65 4e 6f 72 6d 61 6c 27 3b 0a | IGNORE_NORMAL.=.'ignoreNormal';. |
| 0100 | 63 6f 6e 73 74 20 49 47 4e 4f 52 45 5f 41 55 54 4f 53 55 42 4d 49 54 20 3d 20 27 69 67 6e 6f 72 | const.IGNORE_AUTOSUBMIT.=.'ignor |
| 0120 | 65 41 75 74 6f 53 75 62 6d 69 74 27 3b 0a 63 6f 6e 73 74 20 49 47 4e 4f 52 45 5f 50 41 53 53 4b | eAutoSubmit';.const.IGNORE_PASSK |
| 0140 | 45 59 53 20 3d 20 27 69 67 6e 6f 72 65 50 61 73 73 6b 65 79 73 27 3b 0a 63 6f 6e 73 74 20 49 47 | EYS.=.'ignorePasskeys';.const.IG |
| 0160 | 4e 4f 52 45 5f 46 55 4c 4c 20 3d 20 27 69 67 6e 6f 72 65 46 75 6c 6c 27 3b 0a 0a 2f 2f 20 43 72 | NORE_FULL.=.'ignoreFull';..//.Cr |
| 0180 | 65 64 65 6e 74 69 61 6c 20 73 6f 72 74 69 6e 67 20 6f 70 74 69 6f 6e 73 0a 63 6f 6e 73 74 20 53 | edential.sorting.options.const.S |
| 01a0 | 4f 52 54 5f 42 59 5f 54 49 54 4c 45 20 3d 20 27 73 6f 72 74 42 79 54 69 74 6c 65 27 3b 0a 63 6f | ORT_BY_TITLE.=.'sortByTitle';.co |
| 01c0 | 6e 73 74 20 53 4f 52 54 5f 42 59 5f 55 53 45 52 4e 41 4d 45 20 3d 20 27 73 6f 72 74 42 79 55 73 | nst.SORT_BY_USERNAME.=.'sortByUs |
| 01e0 | 65 72 6e 61 6d 65 27 3b 0a 63 6f 6e 73 74 20 53 4f 52 54 5f 42 59 5f 47 52 4f 55 50 5f 41 4e 44 | ername';.const.SORT_BY_GROUP_AND |
| 0200 | 5f 54 49 54 4c 45 20 3d 20 27 73 6f 72 74 42 79 47 72 6f 75 70 41 6e 64 54 69 74 6c 65 27 3b 0a | _TITLE.=.'sortByGroupAndTitle';. |
| 0220 | 63 6f 6e 73 74 20 53 4f 52 54 5f 42 59 5f 47 52 4f 55 50 5f 41 4e 44 5f 55 53 45 52 4e 41 4d 45 | const.SORT_BY_GROUP_AND_USERNAME |
| 0240 | 20 3d 20 27 73 6f 72 74 42 79 47 72 6f 75 70 41 6e 64 55 73 65 72 6e 61 6d 65 27 3b 0a 63 6f 6e | .=.'sortByGroupAndUsername';.con |
| 0260 | 73 74 20 53 4f 52 54 5f 42 59 5f 4d 41 54 43 48 49 4e 47 5f 43 52 45 44 45 4e 54 49 41 4c 53 5f | st.SORT_BY_MATCHING_CREDENTIALS_ |
| 0280 | 53 45 54 54 49 4e 47 20 3d 20 27 73 6f 72 74 42 79 4d 61 74 63 68 69 6e 67 43 72 65 64 65 6e 74 | SETTING.=.'sortByMatchingCredent |
| 02a0 | 69 61 6c 73 27 3b 0a 63 6f 6e 73 74 20 53 4f 52 54 5f 42 59 5f 52 45 4c 45 56 41 4e 54 5f 45 4e | ials';.const.SORT_BY_RELEVANT_EN |
| 02c0 | 54 52 59 20 3d 20 27 73 6f 72 74 42 79 52 65 6c 65 76 61 6e 74 45 6e 74 72 79 27 3b 0a 0a 2f 2f | TRY.=.'sortByRelevantEntry';..// |
| 02e0 | 20 55 70 64 61 74 65 20 63 68 65 63 6b 20 69 6e 74 65 72 76 61 6c 73 0a 63 6f 6e 73 74 20 43 48 | .Update.check.intervals.const.CH |
| 0300 | 45 43 4b 5f 55 50 44 41 54 45 5f 4e 45 56 45 52 20 3d 20 30 3b 0a 63 6f 6e 73 74 20 43 48 45 43 | ECK_UPDATE_NEVER.=.0;.const.CHEC |
| 0320 | 4b 5f 55 50 44 41 54 45 5f 54 48 52 45 45 5f 44 41 59 53 20 3d 20 33 3b 0a 63 6f 6e 73 74 20 43 | K_UPDATE_THREE_DAYS.=.3;.const.C |
| 0340 | 48 45 43 4b 5f 55 50 44 41 54 45 5f 4f 4e 45 5f 57 45 45 4b 20 3d 20 37 3b 0a 63 6f 6e 73 74 20 | HECK_UPDATE_ONE_WEEK.=.7;.const. |
| 0360 | 43 48 45 43 4b 5f 55 50 44 41 54 45 5f 4f 4e 45 5f 4d 4f 4e 54 48 20 3d 20 33 30 3b 0a 0a 63 6f | CHECK_UPDATE_ONE_MONTH.=.30;..co |
| 0380 | 6e 73 74 20 55 52 4c 5f 57 49 4c 44 43 41 52 44 20 3d 20 27 31 6b 70 78 63 77 63 31 27 3b 0a 63 | nst.URL_WILDCARD.=.'1kpxcwc1';.c |
| 03a0 | 6f 6e 73 74 20 73 63 68 65 6d 65 53 65 67 6d 65 6e 74 20 3d 20 27 28 5c 5c 2a 7c 68 74 74 70 7c | onst.schemeSegment.=.'(\\*|http| |
| 03c0 | 68 74 74 70 73 7c 77 73 7c 77 73 73 7c 66 74 70 29 27 3b 0a 63 6f 6e 73 74 20 68 6f 73 74 53 65 | https|ws|wss|ftp)';.const.hostSe |
| 03e0 | 67 6d 65 6e 74 20 3d 20 27 28 5c 5c 2a 7c 28 3f 3a 5c 5c 2a 5c 5c 2e 29 3f 28 3f 3a 5b 5e 2f 2a | gment.=.'(\\*|(?:\\*\\.)?(?:[^/* |
| 0400 | 5d 2b 29 29 3f 27 3b 0a 0a 63 6f 6e 73 74 20 41 73 73 6f 63 69 61 74 65 64 41 63 74 69 6f 6e 20 | ]+))?';..const.AssociatedAction. |
| 0420 | 3d 20 7b 0a 20 20 20 20 4e 4f 54 5f 41 53 53 4f 43 49 41 54 45 44 3a 20 30 2c 0a 20 20 20 20 41 | =.{.....NOT_ASSOCIATED:.0,.....A |
| 0440 | 53 53 4f 43 49 41 54 45 44 3a 20 31 2c 0a 20 20 20 20 4e 45 57 5f 41 53 53 4f 43 49 41 54 49 4f | SSOCIATED:.1,.....NEW_ASSOCIATIO |
| 0460 | 4e 3a 20 32 2c 0a 20 20 20 20 43 41 4e 43 45 4c 45 44 3a 20 33 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 | N:.2,.....CANCELED:.3.};..const. |
| 0480 | 42 61 6e 6e 65 72 50 6f 73 69 74 69 6f 6e 20 3d 20 7b 0a 20 20 20 20 42 4f 54 54 4f 4d 3a 20 30 | BannerPosition.=.{.....BOTTOM:.0 |
| 04a0 | 2c 0a 20 20 20 20 54 4f 50 3a 20 31 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 4d 61 6e 75 61 6c 46 69 6c | ,.....TOP:.1.};..const.ManualFil |
| 04c0 | 6c 20 3d 20 7b 0a 20 20 20 20 4e 4f 4e 45 3a 20 30 2c 0a 20 20 20 20 50 41 53 53 57 4f 52 44 3a | l.=.{.....NONE:.0,.....PASSWORD: |
| 04e0 | 20 31 2c 0a 20 20 20 20 42 4f 54 48 3a 20 32 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 53 69 74 65 50 72 | .1,.....BOTH:.2.};..const.SitePr |
| 0500 | 65 66 65 72 65 6e 63 65 73 20 3d 20 7b 0a 20 20 20 20 41 4c 4c 4f 57 5f 49 46 52 41 4d 45 53 3a | eferences.=.{.....ALLOW_IFRAMES: |
| 0520 | 20 27 61 6c 6c 6f 77 49 66 72 61 6d 65 73 27 2c 0a 20 20 20 20 49 4d 50 52 4f 56 45 44 5f 46 49 | .'allowIframes',.....IMPROVED_FI |
| 0540 | 45 4c 44 5f 44 45 54 45 43 54 49 4f 4e 3a 20 27 69 6d 70 72 6f 76 65 64 46 69 65 6c 64 44 65 74 | ELD_DETECTION:.'improvedFieldDet |
| 0560 | 65 63 74 69 6f 6e 27 2c 0a 20 20 20 20 55 53 45 52 4e 41 4d 45 5f 4f 4e 4c 59 3a 20 27 75 73 65 | ection',.....USERNAME_ONLY:.'use |
| 0580 | 72 6e 61 6d 65 4f 6e 6c 79 27 2c 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 69 73 46 69 72 65 66 6f 78 20 | rnameOnly',.};..const.isFirefox. |
| 05a0 | 3d 20 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 62 72 6f 77 73 65 | =.function().{.....return.browse |
| 05c0 | 72 2e 72 75 6e 74 69 6d 65 2e 67 65 74 55 52 4c 28 27 27 29 3f 2e 73 74 61 72 74 73 57 69 74 68 | r.runtime.getURL('')?.startsWith |
| 05e0 | 28 27 6d 6f 7a 2d 65 78 74 65 6e 73 69 6f 6e 27 29 3b 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 69 73 53 | ('moz-extension');.};..const.isS |
| 0600 | 61 66 61 72 69 20 3d 20 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 | afari.=.function().{.....return. |
| 0620 | 62 72 6f 77 73 65 72 2e 72 75 6e 74 69 6d 65 2e 67 65 74 55 52 4c 28 27 27 29 3f 2e 73 74 61 72 | browser.runtime.getURL('')?.star |
| 0640 | 74 73 57 69 74 68 28 27 73 61 66 61 72 69 2d 77 65 62 2d 65 78 74 65 6e 73 69 6f 6e 27 29 3b 0a | tsWith('safari-web-extension');. |
| 0660 | 7d 3b 0a 0a 63 6f 6e 73 74 20 69 73 45 64 67 65 20 3d 20 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0a | };..const.isEdge.=.function().{. |
| 0680 | 20 20 20 20 72 65 74 75 72 6e 20 6e 61 76 69 67 61 74 6f 72 2e 75 73 65 72 41 67 65 6e 74 2e 69 | ....return.navigator.userAgent.i |
| 06a0 | 6e 64 65 78 4f 66 28 27 45 64 67 27 29 20 21 3d 3d 20 2d 31 3b 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 | ndexOf('Edg').!==.-1;.};..const. |
| 06c0 | 67 65 74 49 63 6f 6e 43 6c 61 73 73 20 3d 20 66 75 6e 63 74 69 6f 6e 28 63 6c 61 73 73 4e 61 6d | getIconClass.=.function(classNam |
| 06e0 | 65 29 20 7b 0a 20 20 20 20 69 66 20 28 69 73 46 69 72 65 66 6f 78 28 29 29 20 7b 0a 20 20 20 20 | e).{.....if.(isFirefox()).{..... |
| 0700 | 20 20 20 20 72 65 74 75 72 6e 20 63 6c 61 73 73 4e 61 6d 65 20 2b 20 27 2d 6d 6f 7a 27 3b 0a 20 | ....return.className.+.'-moz';.. |
| 0720 | 20 20 20 7d 20 65 6c 73 65 20 69 66 20 28 69 73 53 61 66 61 72 69 28 29 29 20 7b 0a 20 20 20 20 | ...}.else.if.(isSafari()).{..... |
| 0740 | 20 20 20 20 72 65 74 75 72 6e 20 63 6c 61 73 73 4e 61 6d 65 20 2b 20 27 2d 73 61 66 61 72 69 27 | ....return.className.+.'-safari' |
| 0760 | 3b 0a 20 20 20 20 7d 0a 20 20 20 20 72 65 74 75 72 6e 20 63 6c 61 73 73 4e 61 6d 65 3b 0a 7d 3b | ;.....}.....return.className;.}; |
| 0780 | 0a 0a 63 6f 6e 73 74 20 73 68 6f 77 4e 6f 74 69 66 69 63 61 74 69 6f 6e 20 3d 20 66 75 6e 63 74 | ..const.showNotification.=.funct |
| 07a0 | 69 6f 6e 28 6d 65 73 73 61 67 65 29 20 7b 0a 20 20 20 20 62 72 6f 77 73 65 72 2e 6e 6f 74 69 66 | ion(message).{.....browser.notif |
| 07c0 | 69 63 61 74 69 6f 6e 73 2e 63 72 65 61 74 65 28 7b 0a 20 20 20 20 20 20 20 20 27 74 79 70 65 27 | ications.create({.........'type' |
| 07e0 | 3a 20 27 62 61 73 69 63 27 2c 0a 20 20 20 20 20 20 20 20 27 69 63 6f 6e 55 72 6c 27 3a 20 62 72 | :.'basic',.........'iconUrl':.br |
| 0800 | 6f 77 73 65 72 2e 72 75 6e 74 69 6d 65 2e 67 65 74 55 52 4c 28 27 69 63 6f 6e 73 2f 6b 65 65 70 | owser.runtime.getURL('icons/keep |
| 0820 | 61 73 73 78 63 5f 36 34 78 36 34 2e 70 6e 67 27 29 2c 0a 20 20 20 20 20 20 20 20 27 74 69 74 6c | assxc_64x64.png'),.........'titl |
| 0840 | 65 27 3a 20 27 4b 65 65 50 61 73 73 58 43 2d 42 72 6f 77 73 65 72 27 2c 0a 20 20 20 20 20 20 20 | e':.'KeePassXC-Browser',........ |
| 0860 | 20 27 6d 65 73 73 61 67 65 27 3a 20 6d 65 73 73 61 67 65 0a 20 20 20 20 7d 29 3b 0a 7d 3b 0a 0a | .'message':.message.....});.};.. |
| 0880 | 2f 2f 20 52 65 74 75 72 6e 73 20 61 20 73 74 72 69 6e 67 20 77 69 74 68 20 27 70 78 27 20 66 6f | //.Returns.a.string.with.'px'.fo |
| 08a0 | 72 20 43 53 53 20 73 74 79 6c 65 73 0a 63 6f 6e 73 74 20 50 69 78 65 6c 73 20 3d 20 66 75 6e 63 | r.CSS.styles.const.Pixels.=.func |
| 08c0 | 74 69 6f 6e 28 76 61 6c 75 65 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 53 74 72 69 6e 67 28 | tion(value).{.....return.String( |
| 08e0 | 76 61 6c 75 65 29 20 2b 20 27 70 78 27 3b 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 63 6f 6d 70 61 72 65 | value).+.'px';.};..const.compare |
| 0900 | 56 65 72 73 69 6f 6e 20 3d 20 66 75 6e 63 74 69 6f 6e 28 6d 69 6e 69 6d 75 6d 2c 20 63 75 72 72 | Version.=.function(minimum,.curr |
| 0920 | 65 6e 74 2c 20 63 61 6e 42 65 45 71 75 61 6c 20 3d 20 74 72 75 65 29 20 7b 0a 20 20 20 20 69 66 | ent,.canBeEqual.=.true).{.....if |
| 0940 | 20 28 21 6d 69 6e 69 6d 75 6d 20 7c 7c 20 21 63 75 72 72 65 6e 74 20 7c 7c 20 6d 69 6e 69 6d 75 | .(!minimum.||.!current.||.minimu |
| 0960 | 6d 3f 2e 69 6e 64 65 78 4f 66 28 27 2e 27 29 20 3d 3d 3d 20 2d 31 20 7c 7c 20 63 75 72 72 65 6e | m?.indexOf('.').===.-1.||.curren |
| 0980 | 74 3f 2e 69 6e 64 65 78 4f 66 28 27 2e 27 29 20 3d 3d 3d 20 2d 31 29 20 7b 0a 20 20 20 20 20 20 | t?.indexOf('.').===.-1).{....... |
| 09a0 | 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 20 48 61 | ..return.false;.....}......//.Ha |
| 09c0 | 6e 64 6c 65 20 62 65 74 61 2f 73 6e 61 70 73 68 6f 74 20 62 75 69 6c 64 73 20 61 73 20 73 74 61 | ndle.beta/snapshot.builds.as.sta |
| 09e0 | 62 6c 65 20 76 65 72 73 69 6f 6e 0a 20 20 20 20 63 6f 6e 73 74 20 73 6e 61 70 73 68 6f 74 20 3d | ble.version.....const.snapshot.= |
| 0a00 | 20 27 2d 73 6e 61 70 73 68 6f 74 27 3b 0a 20 20 20 20 63 6f 6e 73 74 20 62 65 74 61 20 3d 20 27 | .'-snapshot';.....const.beta.=.' |
| 0a20 | 2d 62 65 74 61 27 3b 0a 20 20 20 20 69 66 20 28 63 75 72 72 65 6e 74 2e 65 6e 64 73 57 69 74 68 | -beta';.....if.(current.endsWith |
| 0a40 | 28 73 6e 61 70 73 68 6f 74 29 29 20 7b 0a 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 20 3d 20 | (snapshot)).{.........current.=. |
| 0a60 | 63 75 72 72 65 6e 74 2e 73 6c 69 63 65 28 30 2c 20 2d 73 6e 61 70 73 68 6f 74 2e 6c 65 6e 67 74 | current.slice(0,.-snapshot.lengt |
| 0a80 | 68 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 69 66 20 28 63 75 72 72 65 6e 74 2e 65 6e 64 73 57 | h);.....}......if.(current.endsW |
| 0aa0 | 69 74 68 28 62 65 74 61 29 29 20 7b 0a 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 20 3d 20 63 | ith(beta)).{.........current.=.c |
| 0ac0 | 75 72 72 65 6e 74 2e 73 6c 69 63 65 28 30 2c 20 2d 62 65 74 61 2e 6c 65 6e 67 74 68 29 3b 0a 20 | urrent.slice(0,.-beta.length);.. |
| 0ae0 | 20 20 20 7d 0a 0a 20 20 20 20 63 6f 6e 73 74 20 6d 69 6e 20 3d 20 6d 69 6e 69 6d 75 6d 2e 73 70 | ...}......const.min.=.minimum.sp |
| 0b00 | 6c 69 74 28 27 2e 27 2c 20 33 29 2e 6d 61 70 28 73 20 3d 3e 20 73 2e 70 61 64 53 74 61 72 74 28 | lit('.',.3).map(s.=>.s.padStart( |
| 0b20 | 34 2c 20 27 30 27 29 29 2e 6a 6f 69 6e 28 27 2e 27 29 3b 0a 20 20 20 20 63 6f 6e 73 74 20 63 75 | 4,.'0')).join('.');.....const.cu |
| 0b40 | 72 20 3d 20 63 75 72 72 65 6e 74 2e 73 70 6c 69 74 28 27 2e 27 2c 20 33 29 2e 6d 61 70 28 73 20 | r.=.current.split('.',.3).map(s. |
| 0b60 | 3d 3e 20 73 2e 70 61 64 53 74 61 72 74 28 34 2c 20 27 30 27 29 29 2e 6a 6f 69 6e 28 27 2e 27 29 | =>.s.padStart(4,.'0')).join('.') |
| 0b80 | 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 28 63 61 6e 42 65 45 71 75 61 6c 20 3f 20 28 6d 69 6e 20 | ;.....return.(canBeEqual.?.(min. |
| 0ba0 | 3c 3d 20 63 75 72 29 20 3a 20 28 6d 69 6e 20 3c 20 63 75 72 29 29 3b 0a 7d 3b 0a 0a 2f 2f 20 43 | <=.cur).:.(min.<.cur));.};..//.C |
| 0bc0 | 68 65 63 6b 73 20 69 66 20 65 6c 65 6d 65 6e 74 27 73 20 6e 6f 64 65 4e 61 6d 65 20 6d 61 74 63 | hecks.if.element's.nodeName.matc |
| 0be0 | 68 65 73 0a 63 6f 6e 73 74 20 6d 61 74 63 68 65 73 57 69 74 68 4e 6f 64 65 4e 61 6d 65 20 3d 20 | hes.const.matchesWithNodeName.=. |
| 0c00 | 66 75 6e 63 74 69 6f 6e 28 65 6c 65 6d 2c 20 6e 61 6d 65 29 20 7b 0a 20 20 20 20 2f 2f 20 44 6f | function(elem,.name).{.....//.Do |
| 0c20 | 6e 27 74 20 61 6c 6c 6f 77 20 75 6e 64 65 66 69 6e 65 64 20 65 6c 65 6d 65 6e 74 20 6f 72 20 27 | n't.allow.undefined.element.or.' |
| 0c40 | 6e 61 6d 65 27 0a 20 20 20 20 69 66 20 28 21 65 6c 65 6d 20 7c 7c 20 21 6e 61 6d 65 29 20 7b 0a | name'.....if.(!elem.||.!name).{. |
| 0c60 | 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 | ........return.false;.....}..... |
| 0c80 | 20 72 65 74 75 72 6e 20 65 6c 65 6d 3f 2e 6e 6f 64 65 4e 61 6d 65 3f 2e 74 6f 55 70 70 65 72 43 | .return.elem?.nodeName?.toUpperC |
| 0ca0 | 61 73 65 28 29 20 3d 3d 3d 20 6e 61 6d 65 3f 2e 74 6f 55 70 70 65 72 43 61 73 65 28 29 3b 0a 7d | ase().===.name?.toUpperCase();.} |
| 0cc0 | 3b 0a 0a 2f 2f 20 4d 61 74 63 68 20 68 6f 73 74 6e 61 6d 65 20 6f 72 20 70 61 74 68 20 77 69 74 | ;..//.Match.hostname.or.path.wit |
| 0ce0 | 68 20 77 69 6c 64 63 61 72 64 73 0a 63 6f 6e 73 74 20 6d 61 74 63 68 57 69 74 68 52 65 67 65 78 | h.wildcards.const.matchWithRegex |
| 0d00 | 20 3d 20 66 75 6e 63 74 69 6f 6e 28 66 69 72 73 74 55 72 6c 50 61 72 74 2c 20 73 65 63 6f 6e 64 | .=.function(firstUrlPart,.second |
| 0d20 | 55 72 6c 50 61 72 74 2c 20 68 6f 73 74 6e 61 6d 65 55 73 65 64 20 3d 20 66 61 6c 73 65 29 20 7b | UrlPart,.hostnameUsed.=.false).{ |
| 0d40 | 0a 20 20 20 20 69 66 20 28 66 69 72 73 74 55 72 6c 50 61 72 74 20 3d 3d 3d 20 73 65 63 6f 6e 64 | .....if.(firstUrlPart.===.second |
| 0d60 | 55 72 6c 50 61 72 74 29 20 7b 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a | UrlPart).{.........return.true;. |
| 0d80 | 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 20 49 66 20 74 68 65 72 65 27 73 20 6e 6f 20 77 69 6c 64 | ....}......//.If.there's.no.wild |
| 0da0 | 63 61 72 64 20 77 69 74 68 20 68 6f 73 74 6e 61 6d 65 2c 20 6a 75 73 74 20 63 6f 6d 70 61 72 65 | card.with.hostname,.just.compare |
| 0dc0 | 20 64 69 72 65 63 74 6c 79 0a 20 20 20 20 69 66 20 28 68 6f 73 74 6e 61 6d 65 55 73 65 64 20 26 | .directly.....if.(hostnameUsed.& |
| 0de0 | 26 20 21 66 69 72 73 74 55 72 6c 50 61 72 74 2e 69 6e 63 6c 75 64 65 73 28 55 52 4c 5f 57 49 4c | &.!firstUrlPart.includes(URL_WIL |
| 0e00 | 44 43 41 52 44 29 20 26 26 20 66 69 72 73 74 55 72 6c 50 61 72 74 20 21 3d 3d 20 73 65 63 6f 6e | DCARD).&&.firstUrlPart.!==.secon |
| 0e20 | 64 55 72 6c 50 61 72 74 29 20 7b 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 | dUrlPart).{.........return.false |
| 0e40 | 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 20 45 73 63 61 70 65 20 69 6c 6c 65 67 61 6c 20 63 | ;.....}......//.Escape.illegal.c |
| 0e60 | 68 61 72 61 63 74 65 72 73 0a 20 20 20 20 6c 65 74 20 72 65 20 3d 20 66 69 72 73 74 55 72 6c 50 | haracters.....let.re.=.firstUrlP |
| 0e80 | 61 72 74 2e 72 65 70 6c 61 63 65 41 6c 6c 28 2f 5b 21 5c 5e 24 5c 2b 5c 2d 5c 28 5c 29 40 3c 3e | art.replaceAll(/[!\^$\+\-\(\)@<> |
| 0ea0 | 5d 2f 67 2c 20 27 5c 5c 24 26 27 29 3b 0a 20 20 20 20 69 66 20 28 68 6f 73 74 6e 61 6d 65 55 73 | ]/g,.'\\$&');.....if.(hostnameUs |
| 0ec0 | 65 64 29 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 20 52 65 70 6c 61 63 65 20 61 6c 6c 20 68 6f 73 | ed).{.........//.Replace.all.hos |
| 0ee0 | 74 20 70 61 72 74 73 20 77 69 74 68 20 77 69 6c 64 63 61 72 64 73 20 73 6f 20 65 2e 67 2e 20 68 | t.parts.with.wildcards.so.e.g..h |
| 0f00 | 74 74 70 73 3a 2f 2f 2a 2e 65 78 61 6d 70 6c 65 2e 63 6f 6d 20 69 73 20 61 63 63 65 70 74 65 64 | ttps://*.example.com.is.accepted |
| 0f20 | 20 77 69 74 68 20 68 74 74 70 73 3a 2f 2f 65 78 61 6d 70 6c 65 2e 63 6f 6d 0a 20 20 20 20 20 20 | .with.https://example.com....... |
| 0f40 | 20 20 72 65 20 3d 20 72 65 2e 72 65 70 6c 61 63 65 41 6c 6c 28 60 24 7b 55 52 4c 5f 57 49 4c 44 | ..re.=.re.replaceAll(`${URL_WILD |
| 0f60 | 43 41 52 44 7d 2e 60 2c 20 27 28 2e 2a 3f 29 27 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f | CARD}.`,.'(.*?)');.....}......// |
| 0f80 | 20 52 65 70 6c 61 63 65 20 61 6e 79 20 72 65 6d 61 69 6e 69 6e 67 20 77 69 6c 64 63 61 72 64 73 | .Replace.any.remaining.wildcards |
| 0fa0 | 20 66 6f 72 20 70 61 74 68 73 0a 20 20 20 20 72 65 20 3d 20 72 65 2e 72 65 70 6c 61 63 65 41 6c | .for.paths.....re.=.re.replaceAl |
| 0fc0 | 6c 28 55 52 4c 5f 57 49 4c 44 43 41 52 44 2c 20 27 28 2e 2a 3f 29 27 29 3b 0a 0a 20 20 20 20 72 | l(URL_WILDCARD,.'(.*?)');......r |
| 0fe0 | 65 74 75 72 6e 20 73 65 63 6f 6e 64 55 72 6c 50 61 72 74 2e 6d 61 74 63 68 28 6e 65 77 20 52 65 | eturn.secondUrlPart.match(new.Re |
| 1000 | 67 45 78 70 28 72 65 29 29 3b 0a 7d 3b 0a 0a 2f 2f 20 4d 61 74 63 68 65 73 20 55 52 4c 20 69 6e | gExp(re));.};..//.Matches.URL.in |
| 1020 | 20 53 69 74 65 20 50 72 65 66 65 72 65 6e 63 65 73 20 77 69 74 68 20 74 68 65 20 63 75 72 72 65 | .Site.Preferences.with.the.curre |
| 1040 | 6e 74 20 55 52 4c 0a 63 6f 6e 73 74 20 73 69 74 65 4d 61 74 63 68 20 3d 20 66 75 6e 63 74 69 6f | nt.URL.const.siteMatch.=.functio |
| 1060 | 6e 28 73 69 74 65 2c 20 75 72 6c 29 20 7b 0a 20 20 20 20 74 72 79 20 7b 0a 20 20 20 20 20 20 20 | n(site,.url).{.....try.{........ |
| 1080 | 20 73 69 74 65 20 3d 20 73 69 74 65 2e 72 65 70 6c 61 63 65 41 6c 6c 28 27 2a 27 2c 20 55 52 4c | .site.=.site.replaceAll('*',.URL |
| 10a0 | 5f 57 49 4c 44 43 41 52 44 29 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 73 69 74 65 55 72 | _WILDCARD);.........const.siteUr |
| 10c0 | 6c 20 3d 20 6e 65 77 20 55 52 4c 28 73 69 74 65 29 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 | l.=.new.URL(site);.........const |
| 10e0 | 20 63 75 72 72 65 6e 74 55 72 6c 20 3d 20 6e 65 77 20 55 52 4c 28 75 72 6c 29 3b 0a 0a 20 20 20 | .currentUrl.=.new.URL(url);..... |
| 1100 | 20 20 20 20 20 2f 2f 20 4d 61 74 63 68 20 73 63 68 65 6d 65 20 61 6e 64 20 70 6f 72 74 2e 20 49 | .....//.Match.scheme.and.port..I |
| 1120 | 66 20 53 69 74 65 20 50 72 65 66 65 72 65 6e 63 65 73 20 64 6f 65 73 20 6e 6f 74 20 75 73 65 20 | f.Site.Preferences.does.not.use. |
| 1140 | 61 20 70 6f 72 74 2c 20 61 6c 6c 20 70 6f 72 74 73 20 61 72 65 20 69 67 6e 6f 72 65 64 2e 0a 20 | a.port,.all.ports.are.ignored... |
| 1160 | 20 20 20 20 20 20 20 69 66 20 28 73 69 74 65 55 72 6c 2e 70 72 6f 74 6f 63 6f 6c 20 21 3d 3d 20 | .......if.(siteUrl.protocol.!==. |
| 1180 | 63 75 72 72 65 6e 74 55 72 6c 2e 70 72 6f 74 6f 63 6f 6c 20 7c 7c 20 28 73 69 74 65 55 72 6c 2e | currentUrl.protocol.||.(siteUrl. |
| 11a0 | 70 6f 72 74 20 26 26 20 73 69 74 65 55 72 6c 2e 70 6f 72 74 20 21 3d 3d 20 63 75 72 72 65 6e 74 | port.&&.siteUrl.port.!==.current |
| 11c0 | 55 72 6c 2e 70 6f 72 74 29 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 | Url.port)).{.............return. |
| 11e0 | 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 74 | false;.........}..........//.Mat |
| 1200 | 63 68 20 68 6f 73 74 6e 61 6d 65 20 61 6e 64 20 70 61 74 68 0a 20 20 20 20 20 20 20 20 69 66 20 | ch.hostname.and.path.........if. |
| 1220 | 28 21 6d 61 74 63 68 57 69 74 68 52 65 67 65 78 28 73 69 74 65 55 72 6c 2e 68 6f 73 74 6e 61 6d | (!matchWithRegex(siteUrl.hostnam |
| 1240 | 65 2c 20 63 75 72 72 65 6e 74 55 72 6c 2e 68 6f 73 74 6e 61 6d 65 2c 20 74 72 75 65 29 0a 20 20 | e,.currentUrl.hostname,.true)... |
| 1260 | 20 20 20 20 20 20 20 20 20 20 7c 7c 20 21 6d 61 74 63 68 57 69 74 68 52 65 67 65 78 28 73 69 74 | ..........||.!matchWithRegex(sit |
| 1280 | 65 55 72 6c 2e 70 61 74 68 6e 61 6d 65 2c 20 63 75 72 72 65 6e 74 55 72 6c 2e 70 61 74 68 6e 61 | eUrl.pathname,.currentUrl.pathna |
| 12a0 | 6d 65 29 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b | me)).{.............return.false; |
| 12c0 | 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b | .........}..........return.true; |
| 12e0 | 0a 20 20 20 20 7d 20 63 61 74 63 68 28 65 29 20 7b 0a 20 20 20 20 20 20 20 20 6c 6f 67 45 72 72 | .....}.catch(e).{.........logErr |
| 1300 | 6f 72 28 65 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a | or(e);.....}......return.false;. |
| 1320 | 7d 3b 0a 0a 63 6f 6e 73 74 20 73 6c 61 73 68 4e 65 65 64 65 64 46 6f 72 55 72 6c 20 3d 20 66 75 | };..const.slashNeededForUrl.=.fu |
| 1340 | 6e 63 74 69 6f 6e 28 70 61 74 74 65 72 6e 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74 20 6d 61 74 63 | nction(pattern).{.....const.matc |
| 1360 | 68 50 61 74 74 65 72 6e 20 3d 20 6e 65 77 20 52 65 67 45 78 70 28 60 5e 24 7b 73 63 68 65 6d 65 | hPattern.=.new.RegExp(`^${scheme |
| 1380 | 53 65 67 6d 65 6e 74 7d 3a 2f 2f 24 7b 68 6f 73 74 53 65 67 6d 65 6e 74 7d 24 60 29 3b 0a 20 20 | Segment}://${hostSegment}$`);... |
| 13a0 | 20 20 72 65 74 75 72 6e 20 6d 61 74 63 68 50 61 74 74 65 72 6e 2e 65 78 65 63 28 70 61 74 74 65 | ..return.matchPattern.exec(patte |
| 13c0 | 72 6e 29 3b 0a 7d 3b 0a 0a 66 75 6e 63 74 69 6f 6e 20 74 72 28 6b 65 79 2c 20 70 61 72 61 6d 73 | rn);.};..function.tr(key,.params |
| 13e0 | 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 62 72 6f 77 73 65 72 2e 69 31 38 6e 2e 67 65 74 4d | ).{.....return.browser.i18n.getM |
| 1400 | 65 73 73 61 67 65 28 6b 65 79 2c 20 70 61 72 61 6d 73 29 3b 0a 7d 0a 0a 2f 2f 20 52 65 6d 6f 76 | essage(key,.params);.}..//.Remov |
| 1420 | 65 73 20 65 76 65 72 79 74 68 69 6e 67 20 61 66 74 65 72 20 27 3f 27 20 66 72 6f 6d 20 55 52 4c | es.everything.after.'?'.from.URL |
| 1440 | 0a 63 6f 6e 73 74 20 74 72 69 6d 55 52 4c 20 3d 20 66 75 6e 63 74 69 6f 6e 28 75 72 6c 29 20 7b | .const.trimURL.=.function(url).{ |
| 1460 | 0a 20 20 20 20 72 65 74 75 72 6e 20 75 72 6c 2e 69 6e 64 65 78 4f 66 28 27 3f 27 29 20 21 3d 3d | .....return.url.indexOf('?').!== |
| 1480 | 20 2d 31 20 3f 20 75 72 6c 2e 73 70 6c 69 74 28 27 3f 27 29 5b 30 5d 20 3a 20 75 72 6c 3b 0a 7d | .-1.?.url.split('?')[0].:.url;.} |
| 14a0 | 3b 0a 0a 63 6f 6e 73 74 20 64 65 62 75 67 4c 6f 67 4d 65 73 73 61 67 65 20 3d 20 66 75 6e 63 74 | ;..const.debugLogMessage.=.funct |
| 14c0 | 69 6f 6e 28 6d 65 73 73 61 67 65 2c 20 65 78 74 72 61 29 20 7b 0a 20 20 20 20 63 6f 6e 73 6f 6c | ion(message,.extra).{.....consol |
| 14e0 | 65 2e 64 65 62 75 67 28 60 5b 44 65 62 75 67 20 24 7b 67 65 74 46 69 6c 65 41 6e 64 4c 69 6e 65 | e.debug(`[Debug.${getFileAndLine |
| 1500 | 28 29 7d 5d 20 24 7b 45 58 54 45 4e 53 49 4f 4e 5f 4e 41 4d 45 7d 20 2d 20 24 7b 6d 65 73 73 61 | ()}].${EXTENSION_NAME}.-.${messa |
| 1520 | 67 65 7d 60 29 3b 0a 0a 20 20 20 20 69 66 20 28 65 78 74 72 61 29 20 7b 0a 20 20 20 20 20 20 20 | ge}`);......if.(extra).{........ |
| 1540 | 20 63 6f 6e 73 6f 6c 65 2e 64 65 62 75 67 28 65 78 74 72 61 29 3b 0a 20 20 20 20 7d 0a 7d 3b 0a | .console.debug(extra);.....}.};. |
| 1560 | 0a 63 6f 6e 73 74 20 6c 6f 67 45 72 72 6f 72 20 3d 20 66 75 6e 63 74 69 6f 6e 28 6d 65 73 73 61 | .const.logError.=.function(messa |
| 1580 | 67 65 29 20 7b 0a 20 20 20 20 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 60 5b 45 72 72 6f 72 20 24 7b | ge).{.....console.log(`[Error.${ |
| 15a0 | 67 65 74 46 69 6c 65 41 6e 64 4c 69 6e 65 28 29 7d 5d 20 24 7b 45 58 54 45 4e 53 49 4f 4e 5f 4e | getFileAndLine()}].${EXTENSION_N |
| 15c0 | 41 4d 45 7d 20 2d 20 24 7b 6d 65 73 73 61 67 65 7d 60 29 3b 0a 7d 3b 0a 0a 2f 2f 20 52 65 74 75 | AME}.-.${message}`);.};..//.Retu |
| 15e0 | 72 6e 73 20 66 69 6c 65 20 6e 61 6d 65 20 61 6e 64 20 6c 69 6e 65 20 6e 75 6d 62 65 72 20 66 72 | rns.file.name.and.line.number.fr |
| 1600 | 6f 6d 20 65 72 72 6f 72 20 73 74 61 63 6b 0a 63 6f 6e 73 74 20 67 65 74 46 69 6c 65 41 6e 64 4c | om.error.stack.const.getFileAndL |
| 1620 | 69 6e 65 20 3d 20 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74 20 65 72 72 | ine.=.function().{.....const.err |
| 1640 | 20 3d 20 6e 65 77 20 45 72 72 6f 72 28 29 2e 73 74 61 63 6b 2e 73 70 6c 69 74 28 27 5c 6e 27 29 | .=.new.Error().stack.split('\n') |
| 1660 | 3b 0a 20 20 20 20 63 6f 6e 73 74 20 6c 69 6e 65 20 3d 20 65 72 72 5b 34 5d 20 3f 3f 20 65 72 72 | ;.....const.line.=.err[4].??.err |
| 1680 | 2e 61 74 28 2d 31 29 3b 0a 20 20 20 20 63 6f 6e 73 74 20 72 65 73 75 6c 74 20 3d 20 6c 69 6e 65 | .at(-1);.....const.result.=.line |
| 16a0 | 2e 73 75 62 73 74 72 69 6e 67 28 6c 69 6e 65 2e 6c 61 73 74 49 6e 64 65 78 4f 66 28 27 2f 27 29 | .substring(line.lastIndexOf('/') |
| 16c0 | 20 2b 20 31 2c 20 6c 69 6e 65 2e 6c 61 73 74 49 6e 64 65 78 4f 66 28 27 3a 27 29 29 3b 0a 0a 20 | .+.1,.line.lastIndexOf(':'));... |
| 16e0 | 20 20 20 72 65 74 75 72 6e 20 72 65 73 75 6c 74 3b 0a 7d 3b 0a 0a 63 6f 6e 73 74 20 67 65 74 43 | ...return.result;.};..const.getC |
| 1700 | 75 72 72 65 6e 74 54 61 62 20 3d 20 61 73 79 6e 63 20 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0a 20 | urrentTab.=.async.function().{.. |
| 1720 | 20 20 20 63 6f 6e 73 74 20 74 61 62 73 20 3d 20 61 77 61 69 74 20 62 72 6f 77 73 65 72 2e 74 61 | ...const.tabs.=.await.browser.ta |
| 1740 | 62 73 2e 71 75 65 72 79 28 7b 20 61 63 74 69 76 65 3a 20 74 72 75 65 2c 20 63 75 72 72 65 6e 74 | bs.query({.active:.true,.current |
| 1760 | 57 69 6e 64 6f 77 3a 20 74 72 75 65 20 7d 29 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 74 61 62 73 | Window:.true.});.....return.tabs |
| 1780 | 3f 2e 6c 65 6e 67 74 68 20 3e 20 30 20 3f 20 74 61 62 73 5b 30 5d 20 3a 20 75 6e 64 65 66 69 6e | ?.length.>.0.?.tabs[0].:.undefin |
| 17a0 | 65 64 3b 0a 7d 3b 0a 0a 2f 2f 20 43 68 65 63 6b 20 69 66 20 65 6c 65 6d 65 6e 74 20 62 20 69 73 | ed;.};..//.Check.if.element.b.is |
| 17c0 | 20 69 6e 73 69 64 65 20 61 0a 63 6f 6e 73 74 20 69 73 45 6c 65 6d 65 6e 74 49 6e 73 69 64 65 20 | .inside.a.const.isElementInside. |
| 17e0 | 3d 20 28 61 2c 20 62 29 20 3d 3e 20 28 62 2e 78 20 3e 3d 20 61 2e 78 20 26 26 20 62 2e 72 69 67 | =.(a,.b).=>.(b.x.>=.a.x.&&.b.rig |
| 1800 | 68 74 20 3c 3d 20 61 2e 72 69 67 68 74 29 20 26 26 20 28 62 2e 79 20 3e 3d 20 61 2e 79 20 26 26 | ht.<=.a.right).&&.(b.y.>=.a.y.&& |
| 1820 | 20 62 2e 62 6f 74 74 6f 6d 20 3c 3d 20 61 2e 62 6f 74 74 6f 6d 29 3b 0a 0a 2f 2f 20 43 68 65 63 | .b.bottom.<=.a.bottom);..//.Chec |
| 1840 | 6b 20 69 66 20 74 77 6f 20 65 6c 65 6d 65 6e 74 73 20 6f 76 65 72 6c 61 70 0a 63 6f 6e 73 74 20 | k.if.two.elements.overlap.const. |
| 1860 | 65 6c 65 6d 65 6e 74 73 4f 76 65 72 6c 61 70 20 3d 20 66 75 6e 63 74 69 6f 6e 28 72 65 63 74 31 | elementsOverlap.=.function(rect1 |
| 1880 | 2c 20 72 65 63 74 32 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74 20 6f 76 65 72 6c 61 70 73 20 3d 20 | ,.rect2).{.....const.overlaps.=. |
| 18a0 | 28 61 2c 20 62 29 20 3d 3e 20 21 28 61 2e 72 69 67 68 74 20 3c 20 62 2e 6c 65 66 74 20 7c 7c 20 | (a,.b).=>.!(a.right.<.b.left.||. |
| 18c0 | 61 2e 6c 65 66 74 20 3e 20 62 2e 72 69 67 68 74 20 7c 7c 20 61 2e 62 6f 74 74 6f 6d 20 3c 20 62 | a.left.>.b.right.||.a.bottom.<.b |
| 18e0 | 2e 74 6f 70 20 7c 7c 20 61 2e 74 6f 70 20 3e 20 62 2e 62 6f 74 74 6f 6d 29 3b 0a 20 20 20 20 72 | .top.||.a.top.>.b.bottom);.....r |
| 1900 | 65 74 75 72 6e 20 69 73 45 6c 65 6d 65 6e 74 49 6e 73 69 64 65 28 72 65 63 74 31 2c 20 72 65 63 | eturn.isElementInside(rect1,.rec |
| 1920 | 74 32 29 20 7c 7c 20 6f 76 65 72 6c 61 70 73 28 72 65 63 74 31 2c 20 72 65 63 74 32 29 3b 0a 7d | t2).||.overlaps(rect1,.rect2);.} |
| 1940 | 3b 0a 0a 2f 2f 20 45 78 70 6f 72 74 73 20 66 6f 72 20 74 65 73 74 73 0a 69 66 20 28 74 79 70 65 | ;..//.Exports.for.tests.if.(type |
| 1960 | 6f 66 20 6d 6f 64 75 6c 65 20 3d 3d 3d 20 27 6f 62 6a 65 63 74 27 29 20 7b 0a 20 20 20 20 6d 6f | of.module.===.'object').{.....mo |
| 1980 | 64 75 6c 65 2e 65 78 70 6f 72 74 73 20 3d 20 7b 0a 20 20 20 20 20 20 20 20 63 6f 6d 70 61 72 65 | dule.exports.=.{.........compare |
| 19a0 | 56 65 72 73 69 6f 6e 2c 0a 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 73 4f 76 65 72 6c 61 70 | Version,.........elementsOverlap |
| 19c0 | 2c 0a 20 20 20 20 20 20 20 20 6d 61 74 63 68 65 73 57 69 74 68 4e 6f 64 65 4e 61 6d 65 2c 0a 20 | ,.........matchesWithNodeName,.. |
| 19e0 | 20 20 20 20 20 20 20 73 69 74 65 4d 61 74 63 68 2c 0a 20 20 20 20 20 20 20 20 73 6c 61 73 68 4e | .......siteMatch,.........slashN |
| 1a00 | 65 65 64 65 64 46 6f 72 55 72 6c 2c 0a 20 20 20 20 20 20 20 20 74 72 69 6d 55 52 4c 2c 0a 20 20 | eededForUrl,.........trimURL,... |
| 1a20 | 20 20 7d 3b 0a 7d 0a d8 41 0d 97 45 6f fa f4 01 00 00 00 50 5a e3 c6 00 00 00 00 00 00 00 00 f0 | ..};.}..A..Eo......PZ........... |
| 1a40 | 00 00 00 03 00 00 80 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1a60 | 00 00 00 c4 00 00 00 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 00 43 6f 6e 74 65 6e 74 2d 53 | .......HTTP/1.1.200.OK.Content-S |
| 1a80 | 65 63 75 72 69 74 79 2d 50 6f 6c 69 63 79 3a 20 73 63 72 69 70 74 2d 73 72 63 20 27 73 65 6c 66 | ecurity-Policy:.script-src.'self |
| 1aa0 | 27 00 45 54 61 67 3a 20 22 61 75 71 77 41 38 66 4b 78 70 4b 36 34 4c 36 2f 67 68 75 43 55 42 39 | '.ETag:."auqwA8fKxpK64L6/ghuCUB9 |
| 1ac0 | 63 47 6d 45 3d 22 00 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 00 43 | cGmE=".cache-control:.no-cache.C |
| 1ae0 | 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74 00 4c 61 73 | ontent-Type:.text/javascript.Las |
| 1b00 | 74 2d 4d 6f 64 69 66 69 65 64 3a 20 53 75 6e 2c 20 31 39 20 4a 75 6c 20 32 30 32 36 20 31 33 3a | t-Modified:.Sun,.19.Jul.2026.13: |
| 1b20 | 33 36 3a 30 38 20 47 4d 54 00 00 00 00 00 00 00 00 00 00 8c d6 cb 7e 16 01 eb 5d cd 0a 0d 3d 8f | 36:08.GMT.............~...]...=. |
| 1b40 | 62 c2 dd 8e e4 83 81 9f 91 30 a3 42 59 a2 17 e9 27 67 9f d8 41 0d 97 45 6f fa f4 03 00 00 00 a3 | b........0.BY...'g..A..Eo....... |
| 1b60 | 88 06 32 f4 00 00 00 00 00 00 00 | ..2........ |