firefox: add github notifications script

parent 23eacce0
// ==UserScript==
// @name github
// @version 1
// @grant none
// @include /https://github\.com/notifications.*/
// ==/UserScript==
let b = document.createElement("button");
b.innerHTML = "open";
b.className = "btn";
b.addEventListener("click", _ =>
document
.querySelectorAll(".notification-list-item-link")
.forEach(x => window.open(x.href)));
document
.querySelector(".js-check-all-container .BtnGroup")
.appendChild(b);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment