From c3ecea64e15c0424a9f6623e2d7dfbd5e463fc34 Mon Sep 17 00:00:00 2001 From: darkred Date: Thu, 10 May 2018 17:42:54 +0300 Subject: [PATCH] Update Github_News_Feed_Filter.user.js Fixes #124 Increased the specificity of two selectors . --- Github_News_Feed_Filter/Github_News_Feed_Filter.user.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js b/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js index 787df57..49f2741 100644 --- a/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js +++ b/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js @@ -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 @@ -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== @@ -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); @@ -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); });