We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2da11f4 + f563d56 commit a3d11efCopy full SHA for a3d11ef
chrome/src/inject/inject.js
@@ -43,6 +43,11 @@ function initOnHashChangeAction(domains) {
43
44
if (github_links.length ) {
45
var url = github_links[github_links.length-1].href
46
+
47
+ // skip notification unsubscribe links:
48
+ if (url.match('notifications/unsubscribe')) {
49
+ url = github_links[github_links.length-2].href
50
+ }
51
// Go to thread instead of .diff link (pull request notifications)
52
url = url.match(/\.diff/) ? url.slice(0, url.length-5) : url
53
var link = document.createElement('a')
0 commit comments