Skip to content

Instantly share code, notes, and snippets.

View devxan's full-sized avatar
👋
xan.lol

Xan devxan

👋
xan.lol
View GitHub Profile
@caseywatts
caseywatts / bookmarkleting.md
Last active July 12, 2024 15:27
Making Bookmarklets

This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Making Bookmarklets

I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!

A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.

@diverted247
diverted247 / README
Last active March 21, 2024 18:55
Export slides from Google Slides as SVG - Console Script (Chrome tested)
To export SVG from Google Slides.
1. Open Slide deck.
2. View -> 100%
3. Click on every thumbnail from first to last, this puts the SVG into the DOM.
4. Paste the export.js in the console.
5. Make sure to allow multiple downloads.
6. All SVG should be in Downloads folder.
Cheers,
// ==UserScript==
// @name Scratch Project Analytics
// @version 1
// @description adds engagement rates for a project's likes/fav's out of total views an to MyStuff
// @author NickyNouse
// @match https://scratch.mit.edu/projects/*
// @match https://scratch.mit.edu/mystuf*
// @grant none
// ==/UserScript==
@MegaApuTurkUltra
MegaApuTurkUltra / matu-ctrl-enter.user.js
Last active August 2, 2020 18:32
Makes CTRL-Enter submit on Scratch comment and forum editors
// ==UserScript==
// @name Scratch CTRL-Enter
// @namespace http://aputurk.tk/
// @version 0.1
// @description Adds keybinds for posting
// @author MegaApuTurkUltra
// @match https://scratch.mit.edu/*
// @grant none
// @run-at document-end
// ==/UserScript==
@Zro617
Zro617 / scratch-profile-navbar.user.js
Last active August 2, 2020 03:32
Adds a navigational bar on some profile subpages
// ==UserScript==
// @author Zro617
// @name Scratch Profile Navbar
// @namespace zro617.github.io
// @description Adds a navbar to the profile subpages
// @include https://scratch.mit.edu/users/*/projects/
// @include https://scratch.mit.edu/users/*/favorites/
// @include https://scratch.mit.edu/users/*/studios/
// @include https://scratch.mit.edu/users/*/studios_following/
// @include https://scratch.mit.edu/users/*/following/
@Zro617
Zro617 / scratch-siggy-header-link.user.js
Last active August 2, 2020 03:31
[Scratch] Adds the link to your signature to the top of the forums page where it belongs
@prail
prail / magicFluffyUnicorn.user.js
Last active August 2, 2020 18:37
Simple userscript for commenting nice when you love a project.
// ==UserScript==
// @name magicFluffyUnicorn
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Does cool magic fluffy unicorn kind of stuff.
// @author @TheUltimatum, @bob1171
// @match https://scratch.mit.edu/projects/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Scratch Messages Finder
// @namespace scratch.mit.edu/users/bob1171
// @version 1.1
// @description Displays someone's message count
// @author @bob1171
// @match https://scratch.mit.edu/users/*
// @grant none
// ==/UserScript==
@eddiewebb
eddiewebb / readme.md
Last active June 24, 2024 02:21
Hugo JS Searching with Fuse.js
@Kenny2github
Kenny2github / copy-comment.user.js
Last active August 2, 2020 18:35
Copy Scratch comment links
// ==UserScript==
// @name Comment IDs
// @version 0.1
// @description Get Scratch comment IDs
// @author Kenny2github
// @match https://scratch.mit.edu/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @updateURL https://gist.githubusercontent.com/Kenny2github/a25dff9c52c90d6f062209df43ef0200/raw/copy-comment.user.js
// ==/UserScript==