Skip to content

Commit b8dfac8

Browse files
committed
Revert "test code"
This reverts commit dc96773.
1 parent dc96773 commit b8dfac8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/features/scroll_to_bottom.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,6 @@ const onTagChicletCarouselItemsAdded = ([carousel]) => {
105105
export const main = async function () {
106106
const { stopAtCaughtUp } = await getPreferences('scroll_to_bottom');
107107

108-
pageModifications.register('[tabindex="-1"][data-id]', (postElements) => {
109-
for (const postElement of postElements) {
110-
if (Math.random() < 0.05) {
111-
console.log('simulating scroll stop', getTimelineItemWrapper(postElement));
112-
onTagChicletCarouselItemsAdded([getTimelineItemWrapper(postElement)]);
113-
break;
114-
}
115-
}
116-
});
117-
118108
pageModifications.register(`button[aria-label="${translate('Scroll to top')}"]`, addButtonToPage);
119109
pageModifications.register(knightRiderLoaderSelector, onLoadersAdded);
120110
stopAtCaughtUp && pageModifications.register(`${tagChicletCarouselLinkSelector}, [${borderAttribute}]`, onTagChicletCarouselItemsAdded);

0 commit comments

Comments
 (0)