Refined-github: Open "participating" notifications by default

Created on 7 Mar 2018  路  5Comments  路  Source: sindresorhus/refined-github

I love the "open notifications in tabs" feature, I'm switching from tracking e-mails to viewing GitHub notifications in the browser.

Most of the time I care about notifications for discussions I'm participating in (creator/mentioned/...). Would you be supportive of a tweak that selects the "participating" notifications by default when opening notifications? For now I'm working around with a bookmark. Thanks!

Most helpful comment

// code golfing 馃槄
document.querySelector('.notification-indicator').href += '/participating';

All 5 comments

I misunderstood you, see my comment below.

While I understand why this feature could be useful, I don't think that the tabs should be opened when the user visits the notifications page. What if, for example, a user who doesn't know about this feature visits the notifications page, doesn't notice the tabs opening, later closes them to declutter his tabs and never sees the notifications again because GitHub thinks he has already seen them?

An alternative solution would be to add a small icon next to the Participating tab on the left allowing the user to open all the issues he's participating in in new tabs. We could also allow this feature to be triggered using a special URL like /notifications/participating?rgh-open-all=1 making it bookmarkable.

I think he just wants the bell icon to open /notifications/participating instead of /notifications.

Refined GitHub only changes things to improve them, not as options (even though _improvements_ can be disabled)

You might be interested in this feature of a different extension, however: https://github.com/tanmayrajani/notifications-preview-github/pull/57

Oh, now I get it. I agree that this is out of scope for RGH.

@krlmlr You can also use a user script to accomplish what you want:

document.querySelector('.js-notification-indicator')
    .setAttribute('href', '/notifications/participating');
// code golfing 馃槄
document.querySelector('.notification-indicator').href += '/participating';

Thanks, I'll try my luck at the other extension.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliocanares picture juliocanares  路  3Comments

sompylasar picture sompylasar  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

Celthi picture Celthi  路  3Comments

sindresorhus picture sindresorhus  路  3Comments