Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 1 | import {injectScript, injectStyles, injectStylesheet} from '../../common/contentScriptsUtils.js'; |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 2 | import {getOptions, isOptionEnabled} from '../../common/optionsUtils.js'; |
Adrià Vilanova Martínez | 1f65252 | 2021-10-14 00:23:23 +0200 | [diff] [blame] | 3 | import {injectPreviousPostsLinksUnifiedProfileIfEnabled} from '../utilsCommon/unifiedProfiles.js'; |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 4 | |
Adrià Vilanova Martínez | 27c6996 | 2021-07-17 23:32:51 +0200 | [diff] [blame] | 5 | import AvatarsHandler from './avatars.js'; |
Adrià Vilanova Martínez | 462280f | 2021-08-07 22:59:02 +0200 | [diff] [blame] | 6 | import {batchLock} from './batchLock.js'; |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 7 | import {injectDarkModeButton, isDarkThemeOn} from './darkMode.js'; |
Adrià Vilanova Martínez | eebc0ac | 2022-01-05 14:45:53 +0100 | [diff] [blame] | 8 | // #!if ['chromium', 'chromium_mv3'].includes(browser_target) |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 9 | import {applyDragAndDropFixIfEnabled} from './dragAndDropFix.js'; |
Adrià Vilanova Martínez | eebc0ac | 2022-01-05 14:45:53 +0100 | [diff] [blame] | 10 | // #!endif |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 11 | import InfiniteScroll from './infiniteScroll.js'; |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 12 | import {unifiedProfilesFix} from './unifiedProfiles.js'; |
| 13 | |
Adrià Vilanova Martínez | b06c13d | 2022-06-20 17:30:14 +0000 | [diff] [blame] | 14 | var mutationObserver, options, avatars, infiniteScroll; |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 15 | |
| 16 | const watchedNodesSelectors = [ |
| 17 | // App container (used to set up the intersection observer and inject the dark |
| 18 | // mode button) |
| 19 | 'ec-app', |
| 20 | |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 21 | // Scrollable content (used for the intersection observer) |
| 22 | '.scrollable-content', |
| 23 | |
| 24 | // Load more bar and buttons |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 25 | '.load-more-bar', |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 26 | '.scTailwindThreadMorebuttonbutton', |
Adrià Vilanova Martínez | 8885497 | 2022-08-28 11:57:12 +0200 | [diff] [blame] | 27 | '.scTailwindThreadMessagegapbutton', |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 28 | |
Adrià Vilanova Martínez | 7e8796c | 2022-01-23 21:46:46 +0100 | [diff] [blame] | 29 | // User profile card inside ec-unified-user |
| 30 | 'ec-unified-user .scTailwindUser_profileUsercardmain', |
| 31 | |
Adrià Vilanova Martínez | 531cd07 | 2021-12-05 20:15:43 +0100 | [diff] [blame] | 32 | // Username span/editor inside ec-unified-user (user profile view) |
Adrià Vilanova Martínez | 1f65252 | 2021-10-14 00:23:23 +0200 | [diff] [blame] | 33 | 'ec-unified-user .scTailwindUser_profileUsercarddetails', |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 34 | |
| 35 | // Rich text editor |
| 36 | 'ec-movable-dialog', |
| 37 | 'ec-rich-text-editor', |
| 38 | |
| 39 | // Read/unread bulk action in the list of thread, for the batch lock feature |
| 40 | 'ec-bulk-actions material-button[debugid="mark-read-button"]', |
| 41 | 'ec-bulk-actions material-button[debugid="mark-unread-button"]', |
| 42 | |
Adrià Vilanova Martínez | 854cb91 | 2022-02-02 16:18:23 +0100 | [diff] [blame] | 43 | // Thread list items (used to inject the avatars and extra info) |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 44 | 'li', |
| 45 | |
Adrià Vilanova Martínez | 854cb91 | 2022-02-02 16:18:23 +0100 | [diff] [blame] | 46 | // Thread list item toolbelt (used for the extra info feature) |
| 47 | 'ec-thread-summary .main .toolbelt', |
| 48 | |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 49 | // Thread list (used for the autorefresh feature) |
| 50 | 'ec-thread-list', |
| 51 | |
| 52 | // Unified profile iframe |
| 53 | 'iframe', |
Adrià Vilanova Martínez | 74a2520 | 2022-01-23 23:36:58 +0100 | [diff] [blame] | 54 | |
| 55 | // Canned response tags or toolbelt (for the extra info feature) |
Adrià Vilanova Martínez | 6e4a68d | 2022-01-24 21:44:32 +0100 | [diff] [blame] | 56 | 'ec-canned-response-row .tags', |
| 57 | 'ec-canned-response-row .main .toolbelt', |
| 58 | |
Adrià Vilanova Martínez | 09b3bdb | 2022-02-05 00:15:05 +0100 | [diff] [blame] | 59 | // Question state chips container (for the extra info feature) |
| 60 | 'ec-question .state-chips', |
Adrià Vilanova Martínez | 6e4a68d | 2022-01-24 21:44:32 +0100 | [diff] [blame] | 61 | |
| 62 | // Replies (for the extra info feature) |
| 63 | 'ec-thread ec-message', |
Adrià Vilanova Martínez | 4f56d56 | 2022-01-26 00:23:27 +0100 | [diff] [blame] | 64 | |
| 65 | // User activity chart (for the per-forum stats feature) |
| 66 | 'ec-unified-user .scTailwindUser_profileUserprofilesection ' + |
| 67 | 'sc-tailwind-shared-activity-chart', |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 68 | ]; |
| 69 | |
| 70 | function handleCandidateNode(node) { |
| 71 | if (typeof node.classList !== 'undefined') { |
| 72 | if (('tagName' in node) && node.tagName == 'EC-APP') { |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 73 | infiniteScroll.setUpIntersectionObserver(node, false); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 74 | |
| 75 | // Inject the dark mode button |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 76 | // TODO(avm99963): make this feature dynamic. |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 77 | if (options.ccdarktheme && options.ccdarktheme_mode == 'switch') { |
| 78 | var rightControl = node.querySelector('header .right-control'); |
| 79 | if (rightControl !== null) |
| 80 | injectDarkModeButton(rightControl, options.ccdarktheme_switch_status); |
| 81 | } |
| 82 | } |
| 83 | |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 84 | // To set up infinite scroll |
| 85 | if (node.classList.contains('scrollable-content')) { |
| 86 | infiniteScroll.setUpIntersectionObserver(node, true); |
| 87 | } |
| 88 | |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 89 | // Start the intersectionObserver for the "load more"/"load all" buttons |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 90 | // inside a thread if the option is currently enabled. |
| 91 | if (node.classList.contains('load-more-bar')) { |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 92 | infiniteScroll.observeLoadMoreBar(node); |
| 93 | } |
Adrià Vilanova Martínez | 8885497 | 2022-08-28 11:57:12 +0200 | [diff] [blame] | 94 | if (node.classList.contains('scTailwindThreadMorebuttonbutton') || |
| 95 | node.classList.contains('scTailwindThreadMessagegapbutton')) { |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 96 | infiniteScroll.observeLoadMoreInteropBtn(node); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 97 | } |
| 98 | |
Adrià Vilanova Martínez | 7e8796c | 2022-01-23 21:46:46 +0100 | [diff] [blame] | 99 | // Show additional details in the profile view. |
| 100 | if (node.matches('ec-unified-user .scTailwindUser_profileUsercardmain')) { |
| 101 | window.TWPTExtraInfo.injectAtProfileIfEnabled(node); |
| 102 | } |
| 103 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 104 | // Show the "previous posts" links if the option is currently enabled. |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 105 | // Here we're selecting the 'ec-user > div' element (unique child) |
Adrià Vilanova Martínez | 1f65252 | 2021-10-14 00:23:23 +0200 | [diff] [blame] | 106 | if (node.matches( |
| 107 | 'ec-unified-user .scTailwindUser_profileUsercarddetails')) { |
| 108 | injectPreviousPostsLinksUnifiedProfileIfEnabled( |
| 109 | /* isCommunityConsole = */ true); |
| 110 | } |
| 111 | |
Adrià Vilanova Martínez | eebc0ac | 2022-01-05 14:45:53 +0100 | [diff] [blame] | 112 | // #!if ['chromium', 'chromium_mv3'].includes(browser_target) |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 113 | // Fix the drag&drop issue with the rich text editor if the option is |
| 114 | // currently enabled. |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 115 | // |
| 116 | // We target both tags because in different contexts different |
| 117 | // elements containing the text editor get added to the DOM structure. |
| 118 | // Sometimes it's a EC-MOVABLE-DIALOG which already contains the |
| 119 | // EC-RICH-TEXT-EDITOR, and sometimes it's the EC-RICH-TEXT-EDITOR |
| 120 | // directly. |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 121 | if (('tagName' in node) && |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 122 | (node.tagName == 'EC-MOVABLE-DIALOG' || |
| 123 | node.tagName == 'EC-RICH-TEXT-EDITOR')) { |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 124 | applyDragAndDropFixIfEnabled(node); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 125 | } |
Adrià Vilanova Martínez | eebc0ac | 2022-01-05 14:45:53 +0100 | [diff] [blame] | 126 | // #!endif |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 127 | |
Adrià Vilanova Martínez | b06c13d | 2022-06-20 17:30:14 +0000 | [diff] [blame] | 128 | // Inject the batch lock button in the thread list if the option is |
| 129 | // currently enabled. |
| 130 | if (batchLock.nodeIsReadToggleBtn(node)) { |
| 131 | batchLock.addButtonIfEnabled(node); |
| 132 | } |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 133 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 134 | // Inject avatar links to threads in the thread list. injectIfEnabled is |
| 135 | // responsible of determining whether it should run or not depending on its |
| 136 | // current setting. |
Adrià Vilanova Martínez | 854cb91 | 2022-02-02 16:18:23 +0100 | [diff] [blame] | 137 | // |
| 138 | // Also, inject extra info in the thread list. |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 139 | if (('tagName' in node) && (node.tagName == 'LI') && |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 140 | node.querySelector('ec-thread-summary') !== null) { |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 141 | avatars.injectIfEnabled(node); |
Adrià Vilanova Martínez | 854cb91 | 2022-02-02 16:18:23 +0100 | [diff] [blame] | 142 | window.TWPTExtraInfo.injectAtThreadListIfEnabled(node); |
| 143 | } |
| 144 | |
| 145 | // Inject extra info in the toolbelt of an expanded thread list item. |
| 146 | if (node.matches('ec-thread-summary .main .toolbelt')) { |
| 147 | window.TWPTExtraInfo.injectAtExpandedThreadListIfEnabled(node); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 148 | } |
| 149 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 150 | // Set up the autorefresh list feature. The setUp function is responsible |
| 151 | // of determining whether it should run or not depending on the current |
| 152 | // setting. |
| 153 | if (('tagName' in node) && node.tagName == 'EC-THREAD-LIST') { |
avm99963 | fd22267 | 2021-08-12 23:23:01 +0200 | [diff] [blame] | 154 | window.TWPTAutoRefresh.setUp(); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 155 | } |
| 156 | |
| 157 | // Redirect unified profile iframe to dark version if applicable |
| 158 | if (node.tagName == 'IFRAME' && isDarkThemeOn(options) && |
| 159 | unifiedProfilesFix.checkIframe(node)) { |
| 160 | unifiedProfilesFix.fixIframe(node); |
| 161 | } |
Adrià Vilanova Martínez | 74a2520 | 2022-01-23 23:36:58 +0100 | [diff] [blame] | 162 | |
| 163 | // Show additional details in the canned responses view. |
| 164 | if (node.matches('ec-canned-response-row .tags')) { |
| 165 | window.TWPTExtraInfo.injectAtCRIfEnabled(node, /* isExpanded = */ false); |
| 166 | } |
| 167 | if (node.matches('ec-canned-response-row .main .toolbelt')) { |
| 168 | const tags = node.parentNode?.querySelector?.('.tags'); |
Adrià Vilanova Martínez | 6e4a68d | 2022-01-24 21:44:32 +0100 | [diff] [blame] | 169 | if (tags) |
| 170 | window.TWPTExtraInfo.injectAtCRIfEnabled(tags, /* isExpanded = */ true); |
| 171 | } |
| 172 | |
| 173 | // Show additional details in the thread view. |
Adrià Vilanova Martínez | 09b3bdb | 2022-02-05 00:15:05 +0100 | [diff] [blame] | 174 | if (node.matches('ec-question .state-chips')) { |
| 175 | window.TWPTExtraInfo.injectAtQuestionIfEnabled(node); |
Adrià Vilanova Martínez | 6e4a68d | 2022-01-24 21:44:32 +0100 | [diff] [blame] | 176 | } |
| 177 | if (node.matches('ec-thread ec-message')) { |
| 178 | window.TWPTExtraInfo.injectAtMessageIfEnabled(node); |
Adrià Vilanova Martínez | 74a2520 | 2022-01-23 23:36:58 +0100 | [diff] [blame] | 179 | } |
Adrià Vilanova Martínez | 4f56d56 | 2022-01-26 00:23:27 +0100 | [diff] [blame] | 180 | |
| 181 | // Inject per-forum stats section in the user profile |
| 182 | if (node.matches( |
| 183 | 'ec-unified-user .scTailwindUser_profileUserprofilesection ' + |
| 184 | 'sc-tailwind-shared-activity-chart')) { |
| 185 | window.TWPTExtraInfo.injectPerForumStatsIfEnabled(node); |
| 186 | } |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 187 | } |
| 188 | } |
| 189 | |
| 190 | function handleRemovedNode(node) { |
| 191 | // Remove snackbar when exiting thread list view |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 192 | if ('tagName' in node && node.tagName == 'EC-THREAD-LIST') { |
avm99963 | fd22267 | 2021-08-12 23:23:01 +0200 | [diff] [blame] | 193 | window.TWPTAutoRefresh.hideUpdatePrompt(); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 194 | } |
| 195 | } |
| 196 | |
| 197 | function mutationCallback(mutationList, observer) { |
| 198 | mutationList.forEach((mutation) => { |
| 199 | if (mutation.type == 'childList') { |
| 200 | mutation.addedNodes.forEach(function(node) { |
| 201 | handleCandidateNode(node); |
| 202 | }); |
| 203 | |
| 204 | mutation.removedNodes.forEach(function(node) { |
| 205 | handleRemovedNode(node); |
| 206 | }); |
| 207 | } |
| 208 | }); |
| 209 | } |
| 210 | |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 211 | var observerOptions = { |
| 212 | childList: true, |
| 213 | subtree: true, |
| 214 | }; |
| 215 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 216 | getOptions(null).then(items => { |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 217 | options = items; |
| 218 | |
Adrià Vilanova Martínez | 27c6996 | 2021-07-17 23:32:51 +0200 | [diff] [blame] | 219 | // Initialize classes needed by the mutation observer |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 220 | avatars = new AvatarsHandler(); |
Adrià Vilanova Martínez | a7ae3db | 2022-01-28 11:57:27 +0100 | [diff] [blame] | 221 | infiniteScroll = new InfiniteScroll(); |
Adrià Vilanova Martínez | 27c6996 | 2021-07-17 23:32:51 +0200 | [diff] [blame] | 222 | |
Adrià Vilanova Martínez | 854cb91 | 2022-02-02 16:18:23 +0100 | [diff] [blame] | 223 | // autoRefresh and extraInfo are initialized in start.js |
avm99963 | d3f4ac0 | 2021-08-12 18:36:58 +0200 | [diff] [blame] | 224 | |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 225 | // Before starting the mutation Observer, check whether we missed any |
| 226 | // mutations by manually checking whether some watched nodes already |
| 227 | // exist. |
| 228 | var cssSelectors = watchedNodesSelectors.join(','); |
| 229 | document.querySelectorAll(cssSelectors) |
| 230 | .forEach(node => handleCandidateNode(node)); |
| 231 | |
| 232 | mutationObserver = new MutationObserver(mutationCallback); |
| 233 | mutationObserver.observe(document.body, observerOptions); |
| 234 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 235 | // TODO(avm99963): The following features are not dynamic. Make them be. |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 236 | if (options.fixedtoolbar) { |
| 237 | injectStyles( |
| 238 | 'ec-bulk-actions{position: sticky; top: 0; background: var(--TWPT-primary-background, #fff); z-index: 96;}'); |
| 239 | } |
| 240 | |
| 241 | if (options.increasecontrast) { |
| 242 | injectStyles( |
| 243 | '.thread-summary.read:not(.checked){background: var(--TWPT-thread-read-background, #ecedee)!important;}'); |
| 244 | } |
| 245 | |
| 246 | if (options.stickysidebarheaders) { |
| 247 | injectStyles( |
| 248 | 'material-drawer .main-header{background: var(--TWPT-drawer-background, #fff)!important; position: sticky; top: 0; z-index: 1;}'); |
| 249 | } |
| 250 | |
| 251 | if (options.enhancedannouncementsdot) { |
| 252 | injectStylesheet( |
| 253 | chrome.runtime.getURL('css/enhanced_announcements_dot.css')); |
| 254 | } |
| 255 | |
| 256 | if (options.repositionexpandthread) { |
Adrià Vilanova Martínez | 27c6996 | 2021-07-17 23:32:51 +0200 | [diff] [blame] | 257 | injectStylesheet(chrome.runtime.getURL('css/reposition_expand_thread.css')); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 258 | } |
| 259 | |
Adrià Vilanova Martínez | 9d27c21 | 2021-12-05 13:54:10 +0100 | [diff] [blame] | 260 | if (options.imagemaxheight) { |
| 261 | injectStylesheet(chrome.runtime.getURL('css/image_max_height.css')); |
| 262 | } |
| 263 | |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 264 | if (options.ccforcehidedrawer) { |
| 265 | var drawer = document.querySelector('material-drawer'); |
| 266 | if (drawer !== null && drawer.classList.contains('mat-drawer-expanded')) { |
| 267 | document.querySelector('.material-drawer-button').click(); |
| 268 | } |
| 269 | } |
| 270 | |
Adrià Vilanova Martínez | d269c62 | 2021-09-04 18:35:55 +0200 | [diff] [blame] | 271 | // Batch lock |
| 272 | injectScript(chrome.runtime.getURL('batchLockInject.bundle.js')); |
| 273 | injectStylesheet(chrome.runtime.getURL('css/batchlock_inject.css')); |
| 274 | // Thread list avatars |
| 275 | injectStylesheet(chrome.runtime.getURL('css/thread_list_avatars.css')); |
| 276 | // Auto refresh list |
| 277 | injectStylesheet(chrome.runtime.getURL('css/autorefresh_list.css')); |
Adrià Vilanova Martínez | 7e8796c | 2022-01-23 21:46:46 +0100 | [diff] [blame] | 278 | // Extra info |
| 279 | injectStylesheet(chrome.runtime.getURL('css/extrainfo.css')); |
avm99963 | 37601bc | 2022-02-21 10:36:45 +0100 | [diff] [blame] | 280 | injectStylesheet(chrome.runtime.getURL('css/extrainfo_perforumstats.css')); |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 281 | }); |