From 97d88873c4c82a14733340ac63e1d950d340a551 Mon Sep 17 00:00:00 2001 From: Journey Date: Sun, 2 Oct 2022 09:11:18 -0500 Subject: [PATCH] Fix github latest (#21) --- GitHub_Latest.meta.js | 2 +- GitHub_Latest.user.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GitHub_Latest.meta.js b/GitHub_Latest.meta.js index aba3c93..6da4f17 100644 --- a/GitHub_Latest.meta.js +++ b/GitHub_Latest.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name GitHub Latest // @namespace https://github.com/Ede123/userscripts -// @version 1.1.2 +// @version 1.1.3 // @description Always keep an eye on the latest activity of your favorite projects // @icon https://raw.githubusercontent.com/Ede123/userscripts/master/icons/GitHub.png // @author Eduard Braun diff --git a/GitHub_Latest.user.js b/GitHub_Latest.user.js index e002421..071c6ce 100644 --- a/GitHub_Latest.user.js +++ b/GitHub_Latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name GitHub Latest // @namespace https://github.com/Ede123/userscripts -// @version 1.1.2 +// @version 1.1.3 // @description Always keep an eye on the latest activity of your favorite projects // @icon https://raw.githubusercontent.com/Ede123/userscripts/master/icons/GitHub.png // @author Eduard Braun @@ -62,5 +62,6 @@ function addLatestButton() { addLatestButton(); -// GitHub uses pjax to navigate between documents -document.addEventListener('pjax:success', addLatestButton); +// GitHub uses usage of https://github.com/defunkt/jquery-pjax#events and https://turbo.hotwired.dev/reference/events. +// https://github.com/refined-github/refined-github/issues/5719 +document.addEventListener('turbo:render', addLatestButton);