This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createFilename() { | |
let domainName = location.href.split("://")[1].split("/")[0].replace("www.", ""); | |
let pageTitle = document.title; | |
let filename = pageTitle; | |
let cleanName = filename.replace(/[\(\)\[\]\\/?%*:'|"<>!]/g, "-"); | |
return cleanName; | |
} | |
function showPopup(msg) { | |
let popup = document.createElement("div"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.location.hostname === "github.com") { | |
const feedContent = document.querySelector('.feed-content') | |
if (feedContent){ | |
const feedMain = document.querySelector('.feed-main') | |
feedContent.style.maxWidth = "unset" | |
feedMain.style.maxWidth = "1200px" | |
fetch('https://github.com/dashboard-feed') | |
.then(response => response.text()) | |
.then(text => { |