From 57c08bbf7a7453bca97628ea817cc2d7fe437a3f Mon Sep 17 00:00:00 2001 From: darkred Date: Sun, 20 May 2018 15:39:14 +0300 Subject: [PATCH 1/3] Update Github_News_Feed_Filter.user.js Fix for 'Actions' tab|'Wiki' being empty after GitHub site update (additional re-fix for #124) --- Github_News_Feed_Filter/Github_News_Feed_Filter.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 6dda217..581ab59 100644 --- a/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js +++ b/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js @@ -308,9 +308,9 @@ alert.classList.add('tag_remove'); } else if (alert.classList.contains('gollum')) { alert.classList.remove('gollum'); - if (!!~alert.textContent.indexOf(' created the ')) { + if (!!~alert.innerText.indexOf(' created a wiki page in ')) { alert.classList.add('wiki_created'); - } else if (!!~alert.textContent.indexOf(' edited a wiki page in ')) { + } else if (!!~alert.innerText.indexOf(' edited a wiki page in ')) { alert.classList.add('wiki_edited'); } } From d91f4fa4f937d2dd0be360f1f370e6fa8129ffbb Mon Sep 17 00:00:00 2001 From: darkred Date: Sun, 20 May 2018 16:07:15 +0300 Subject: [PATCH 2/3] Update Github_News_Feed_Filter.user.js Fix for missing some entries in the 'Repositories' tab --- Github_News_Feed_Filter/Github_News_Feed_Filter.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 581ab59..e8bff0e 100644 --- a/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js +++ b/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js @@ -325,7 +325,7 @@ Array.prototype.map.call(newsContainer.querySelectorAll(':scope > div > .body'), function(alert) { return alert.parentNode; }).forEach(function(alert) { - var alertRepo = alert.querySelector(':scope .flex-items-baseline > div > [data-ga-click*="target:repo"]'); + var alertRepo = alert.querySelector('[data-ga-click*="target:repo"]'); if (alertRepo) { // Follow doesn't contain a repo link. var userRepo = alertRepo.textContent; userRepos.add(userRepo); From 28f0a76b1628482eb0eeec5f8686e733fef3ac80 Mon Sep 17 00:00:00 2001 From: darkred Date: Sun, 20 May 2018 19:42:50 +0300 Subject: [PATCH 3/3] Update Github_News_Feed_Filter.user.js Use the :scope selector --- Github_News_Feed_Filter/Github_News_Feed_Filter.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e8bff0e..a083c20 100644 --- a/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js +++ b/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js @@ -325,7 +325,7 @@ Array.prototype.map.call(newsContainer.querySelectorAll(':scope > div > .body'), function(alert) { return alert.parentNode; }).forEach(function(alert) { - var alertRepo = alert.querySelector('[data-ga-click*="target:repo"]'); + var alertRepo = alert.querySelector(':scope [data-ga-click*="target:repo"]'); if (alertRepo) { // Follow doesn't contain a repo link. var userRepo = alertRepo.textContent; userRepos.add(userRepo);