From 68102ae462428ab2dfe4987d9fd1eef353697cbc Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 1 Oct 2023 04:25:57 -0700 Subject: [PATCH] test code --- src/scripts/show_originals.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/show_originals.js b/src/scripts/show_originals.js index 7fff08cbe..954594a91 100644 --- a/src/scripts/show_originals.js +++ b/src/scripts/show_originals.js @@ -5,6 +5,7 @@ import { onNewPosts } from '../util/mutations.js'; import { keyToCss } from '../util/css_map.js'; import { translate } from '../util/language_data.js'; import { userBlogs } from '../util/user.js'; +import { onNavigation } from '../util/on_navigation.js'; const hiddenAttribute = 'data-show-originals-hidden'; const lengthenedClass = 'xkit-show-originals-lengthened'; @@ -126,6 +127,8 @@ export const main = async function () { disabledBlogs = [...whitelist, ...showOwnReblogs ? nonGroupUserBlogs : []]; onNewPosts.addListener(processPosts); + + onNavigation.register(() => console.log('navigated to', location.href)); }; export const clean = async function () {