Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix github latest #21

Merged
merged 1 commit into from
Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);