Skip to content

Commit b835a64

Browse files
committed
🐛 Fixed issues after layout updates. Closes #114
1 parent 4eca176 commit b835a64

2 files changed

Lines changed: 163 additions & 99 deletions

File tree

Github_News_Feed_Filter/Github_News_Feed_Filter.user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_News_Feed_Filter
1010
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js
1111
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_News_Feed_Filter/Github_News_Feed_Filter.user.js
12+
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
13+
// @icon https://github.com/fluidicon.png
1214
// @include https://github.com/
1315
// @include https://github.com/?*
1416
// @include https://github.com/orgs/*/dashboard
1517
// @include https://github.com/orgs/*/dashboard?*
1618
// @include https://github.com/*tab=activity*
17-
// @version 7.0.1
19+
// @version 7.1.0
1820
// @grant none
1921
// ==/UserScript==
2022
/* global Event, Set */
@@ -491,12 +493,11 @@
491493

492494
// Init;
493495
(function init() {
494-
console.log('GitHubNewsFeedFilter', 'page load');
495-
496496
var newsContainer = document.querySelector(".news");
497497
if (!newsContainer) { return; }
498498

499-
var sidebar = document.querySelector(".dashboard-sidebar") || document.querySelector(".column.one-fourth.vcard");
499+
// GitHub homepage or profile activity tab;
500+
var sidebar = document.querySelector(".dashboard-sidebar") || document.querySelector(".profilecols > .column:first-child");
500501

501502
var wrapper = document.createElement(filterElement);
502503
wrapper.classList.add("boxed-group", "flush", "user-repos");

Github_News_Feed_Filter/README.md

Lines changed: 158 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -5,122 +5,185 @@
55
[![Donate](https://raw.github.com/jerone/UserScripts/master/_resources/Donate-button.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW)
66
[![Support](https://raw.github.com/jerone/UserScripts/master/_resources/Support-button.png)](https://github.com/jerone/UserScripts/issues)
77

8-
98
## Description
109

1110
Add filters for [Github homepage](https://github.com) news feed items.
1211

13-
This script also works for organizations and on user profiles [public activity](https://github.com/jerone?tab=activity) (page refresh is required).
12+
This script also works for organizations and on user profiles [public activity](https://github.com/jerone?tab=activity)
13+
(page refresh is required).
1414

1515
Currently integrated filters:
1616

17-
* Actions
18-
* Issues
19-
* Opened
20-
* Closed
21-
* Reopened
22-
* Comments
23-
* Commits
24-
* Pushed
25-
* Comments
26-
* Pull Requests
27-
* Opened
28-
* Closed
29-
* Merged
30-
* Comments
31-
* Repo
32-
* Created
33-
* Public
34-
* Forked
35-
* Deleted
36-
* Release
37-
* Branch
38-
* Created
39-
* Deleted
40-
* Tag
41-
* Added
42-
* Removed
43-
* User
44-
* Starred
45-
* Member added
46-
* Wiki
47-
* Created
48-
* Edited
49-
* Gist
50-
* Created
51-
* Updated
52-
* Repositories
53-
* _Variable on the repos currently in your news list_
17+
* Actions
18+
19+
* Issues
20+
21+
* Opened
22+
* Closed
23+
* Reopened
24+
* Comments
25+
26+
* Commits
27+
28+
* Pushed
29+
* Comments
30+
31+
* Pull Requests
32+
33+
* Opened
34+
* Closed
35+
* Merged
36+
* Comments
37+
38+
* Repo
39+
40+
* Created
41+
42+
* Public
43+
44+
* Forked
45+
46+
* Deleted
47+
48+
* Release
49+
50+
* Branch
51+
52+
* Created
53+
* Deleted
54+
55+
* Tag
56+
57+
* Added
58+
* Removed
5459

60+
* User
61+
62+
* Starred
63+
* Member added
64+
65+
* Wiki
66+
67+
* Created
68+
* Edited
69+
70+
* Gist
71+
72+
* Created
73+
* Updated
74+
75+
* Repositories
76+
77+
* _Variable on the repos currently in your news list_
5578

5679
## Screenshot
5780

5881
![Github News Feed Filter screenshot](https://github.com/jerone/UserScripts/raw/master/Github_News_Feed_Filter/screenshot.png)
5982

60-
6183
## Compatible
6284

63-
* [![](https://raw.github.com/jerone/UserScripts/master/_resources/Greasemonkey.png) Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/) on [![](https://raw.github.com/jerone/UserScripts/master/_resources/Firefox.png) Mozilla Firefox](http://www.mozilla.org/en-US/firefox/fx/#desktop) desktop.
64-
85+
* ![](https://raw.github.com/jerone/UserScripts/master/_resources/Greasemonkey.png) [Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/) on ![](https://raw.github.com/jerone/UserScripts/master/_resources/Firefox.png) [Mozilla Firefox](http://www.mozilla.org/en-US/firefox/fx/#desktop) desktop.
6586

6687
## Version History
67-
* **7.0.1**
68-
* :bug: Fixed falsely identification branch creation and deletion;
69-
* **7.0.0**
70-
* Restored icons after GitHub switching to SVG;
71-
* **6.2**
72-
* :sparkles: Filter by repo. Fixes [#70](https://github.com/jerone/UserScripts/issues/70);
73-
* **6.1**
74-
* :bug: Fixed counting repo releases as tag actions;
75-
* :sparkles: Split wiki filter in created and edited;
76-
* **6.0**
77-
* Fixed issues after Github site update (https://github.com/jerone/UserScripts/issues/68);
78-
* **5.3**
79-
* Added filter history support;
80-
* **5.2**
81-
* Fixed issues after Github site update (https://github.com/jerone/UserScripts/issues/6);
82-
* **5.1**
83-
* Added support for user public activity;
84-
* **5.0**
85-
* More filters added;
86-
* **4.6**
87-
* Show message when filter has no feed items;
88-
* **4.5**
89-
* Added branch deleting support;
90-
* **4.4**
91-
* Added support for organisations;
92-
* Added commit comments;
93-
* **4.3**
94-
* Reordered menu;
95-
* Expanded Gist create & update;
96-
* Changed Starred in User actions and added member add;
97-
* **4.2**
98-
* Added support for Scriptish;
99-
* **4.1**
100-
* Added fork filter;
101-
* Added sub-filters for issues (comments, opened, closed, reopened);
102-
* **4.0**
103-
* Better integrated menu style;
104-
* **3.1**
105-
* Moved PR comments to PR filter;
106-
* **3.0**
107-
* Added Stars, Repo and Wiki filter;
108-
* Moved Comments to Issues filter;
109-
* Made menu lower;
110-
* **2.0**
111-
* Added Pull Requests filter;
112-
* **1.0**
113-
* Initial version;
11488

89+
* **7.1.0**
11590

116-
## TODO
91+
* :bug: Fixed issues after layout updates. Closes [#114](https://github.com/jerone/UserScripts/pull/114)
92+
93+
* **7.0.1**
94+
95+
* :bug: Fixed falsely identification branch creation and deletion
96+
97+
* **7.0.0**
98+
99+
* Restored icons after GitHub switching to SVG
100+
101+
* **6.2**
102+
103+
* :sparkles: Filter by repo. Fixes [#70](https://github.com/jerone/UserScripts/issues/70)
104+
105+
* **6.1**
117106

118-
- ~~Run on users public activity stream (https://github.com/jerone?tab=activity);~~ _Only works on direct access._
119-
- ~~Filter by repo~~;
120-
- Filter by user;
107+
* :bug: Fixed counting repo releases as tag actions
108+
* :sparkles: Split wiki filter in created and edited
109+
110+
* **6.0**
111+
112+
* Fixed issues after Github site update ([#68](https://github.com/jerone/UserScripts/issues/68))
113+
114+
* **5.3**
115+
116+
* Added filter history support
117+
118+
* **5.2**
119+
120+
* Fixed issues after Github site update ([#6](https://github.com/jerone/UserScripts/issues/6))
121+
122+
* **5.1**
123+
124+
* Added support for user public activity
125+
126+
* **5.0**
127+
128+
* More filters added
129+
130+
* **4.6**
131+
132+
* Show message when filter has no feed items
133+
134+
* **4.5**
135+
136+
* Added branch deleting support
137+
138+
* **4.4**
139+
140+
* Added support for organizations
141+
* Added commit comments
142+
143+
* **4.3**
144+
145+
* Reordered menu
146+
* Expanded Gist create & update
147+
* Changed Starred in User actions and added member add
148+
149+
* **4.2**
150+
151+
* Added support for Scriptish
152+
153+
* **4.1**
154+
155+
* Added fork filter
156+
* Added sub-filters for issues (comments, opened, closed, reopened)
157+
158+
* **4.0**
159+
160+
* Better integrated menu style
161+
162+
* **3.1**
163+
164+
* Moved PR comments to PR filter
165+
166+
* **3.0**
167+
168+
* Added Stars, Repo and Wiki filter
169+
* Moved Comments to Issues filter
170+
* Made menu lower
171+
172+
* **2.0**
173+
174+
* Added Pull Requests filter
175+
176+
* **1.0**
177+
178+
* Initial version
179+
180+
## TODO
121181

182+
* ~~Run on users public activity stream ([](https://github.com/jerone?tab=activity));~~ _Only works on direct access._
183+
* ~~Filter by repo~~;
184+
* Filter by user;
122185

123186
## External links
124187

125-
* [Greasy Fork](https://greasyfork.org/scripts/171-github-news-feed-filter)
126-
* [OpenUserJS](https://openuserjs.org/scripts/jerone/Github_News_Feed_Filter)
188+
* [Greasy Fork](https://greasyfork.org/scripts/171-github-news-feed-filter)
189+
* [OpenUserJS](https://openuserjs.org/scripts/jerone/Github_News_Feed_Filter)

0 commit comments

Comments
 (0)