diff --git a/src/pages/ContentScripts/features/repo-star-tooltip/index.tsx b/src/pages/ContentScripts/features/repo-star-tooltip/index.tsx index 44ae1dfc..3881257b 100644 --- a/src/pages/ContentScripts/features/repo-star-tooltip/index.tsx +++ b/src/pages/ContentScripts/features/repo-star-tooltip/index.tsx @@ -30,19 +30,16 @@ const init = async (): Promise => { //
// No matter the repo is starred or not, the two button are always there // Select all star buttons and no more filtering - const $starButton = $(starButtonSelector).filter(function () { - if ($(this).parent().parent().css('display') !== 'none') { - return true; - } else { - return false; - } + + const $starButtons = $(starButtonSelector); + $starButtons.each(function () { + const placeholderElement = $('
').appendTo('body')[0]; + createRoot(placeholderElement).render( + + + + ); }); - const placeholderElement = $('
').appendTo('body')[0]; - createRoot(placeholderElement).render( - - - - ); }; const restore = async () => {};