Skip to content

Instantly share code, notes, and snippets.

@marcjulianschwarz
marcjulianschwarz / github-old-dashboard.js
Last active November 16, 2024 19:24
Bring back the old GitHub dashboard with PageExtender for Safari
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 => {
@stevoyoung
stevoyoung / gist:3214626
Created July 31, 2012 07:45
Open New Safari Window and make it active
-- This AppleScript is used to create a new safari window then it brings Safari to the front.
-- I'm using this as a script I can trigger via Alfred. It's particularly nice when you work
-- in many spaces on your Mac. If you are in a space that doesn't have a Safari window open
-- it will simply open a new window in that space without switch spaces on you.
-- Feel free to copy and use however you would like.
-- Created by Stephen Young, @stevoyoung
-- Hey, Safari, I'm talking to you ...
tell application "Safari"
-- open new safari window and go to specific url. If you want a blank window, simple use "make new document" instead.