Skip to content
Merged
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
7 changes: 4 additions & 3 deletions Github_News_Feed_Filter/Github_News_Feed_Filter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// @namespace https://github.com/jerone/UserScripts
// @description Add filters for GitHub homepage news feed items
// @author jerone
// @contributor darkred
// @copyright 2014+, jerone (http://jeroenvanwarmerdam.nl)
// @license GPL-3.0
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_News_Feed_Filter
Expand All @@ -15,7 +16,7 @@
// @include https://github.com/?*
// @include https://github.com/orgs/*/dashboard
// @include https://github.com/orgs/*/dashboard?*
// @version 8.1.0
// @version 8.1.1
// @grant none
// ==/UserScript==

Expand Down Expand Up @@ -324,7 +325,7 @@
Array.prototype.map.call(newsContainer.querySelectorAll('.body'), function(alert) {
return alert.parentNode;
}).forEach(function(alert) {
var alertRepo = alert.querySelector('[data-ga-click*="target:repo"]');
var alertRepo = alert.querySelector('.flex-items-baseline > div > [data-ga-click*="target:repo"]');
if (alertRepo) { // Follow doesn't contain a repo link.
var userRepo = alertRepo.textContent;
userRepos.add(userRepo);
Expand Down Expand Up @@ -366,7 +367,7 @@
Array.prototype.map.call(newsContainer.querySelectorAll('.body'), function(alert) {
return alert.parentNode;
}).forEach(function(alert) {
var username = alert.querySelector('[data-ga-click*="target:actor"]').textContent;
var username = alert.querySelector('.flex-items-baseline > div > [data-ga-click*="target:actor"]').textContent;
alert.classList.add(username);
users.add(username);
});
Expand Down