Skip to content

Commit

Permalink
Fix github latest (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
JourneyOver authored Oct 2, 2022
1 parent 63d43d0 commit 97d8887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GitHub_Latest.meta.js
Original file line number Diff line number Diff line change
@@ -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 <eduard.braun2@gmx.de>
Expand Down
7 changes: 4 additions & 3 deletions GitHub_Latest.user.js
Original file line number Diff line number Diff line change
@@ -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 <eduard.braun2@gmx.de>
Expand Down Expand Up @@ -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);

0 comments on commit 97d8887

Please sign in to comment.