Skip to content

Instantly share code, notes, and snippets.

View olejorgenb's full-sized avatar

Ole Jørgen Brønner olejorgenb

View GitHub Profile
@olejorgenb
olejorgenb / main.js
Last active October 27, 2023 10:35
Search SciHub for current page
// bookmarklet_title: SciHub
function findInSciHub() {
const sciHubUrl = `https://sci-hub.se/${location.toString()}`
window.open(sciHubUrl, "_blank")
}
findInSciHub()
@olejorgenb
olejorgenb / highlight-hn-author.js
Last active April 7, 2024 14:32
Highlight HN author
// bookmarklet_title: Highlight HN author
// https://chat.openai.com/c/496f4ddc-0151-40aa-af92-36897587d7ea
// Because I'm lazy
// Function to change the mouse cursor to something distinctive
function setDistinctiveCursor() {
document.body.style.cursor = 'crosshair';
}
@olejorgenb
olejorgenb / unshort.js
Last active December 23, 2023 11:54
UnShort: Open a YouTube short video as a regular video (enabling seeking etc.)
//bookmarklet_title: UnShort
function unshort() {
const videoId = location.pathname.split("/")[2]
location.replace(`/watch?v=${videoId}`)
}
unshort()