Skip to content

Instantly share code, notes, and snippets.

@TheFrostlixen
TheFrostlixen / Bookmarklets.MD
Last active October 1, 2024 04:46
Bookmarklets - JavaScript apps for your web browser

Bookmarklets

A bookmarklet is a javascript app that you save in your web browser as a bookmark. You simply click it and it will perform a task on that webpage.

My Bookmarklets

  • CleanReddit.js Removes the header and side panel from Reddit pages. Makes it look a little more clean (and less like you're not working at your desk).
  • QRthis.js Use Google's API to generate a QR code for the website you're on.
@nmmarkin
nmmarkin / pre2html.bookmarklet.js
Last active December 22, 2016 20:50
pre2html
javascript:
/**
* This bookmark allows you to render and live edit (retaining indentation)
* the contents of a <pre> tag (html markup for example) on the page.
*
* How to use it:
* Create a new bookmark and paste the contents of this file (including the 'javascript:' part)
* as a path of the bookmark, apply it by clicking on the bookmark when necessary.
*
@ewistrand
ewistrand / live.js
Created November 25, 2015 21:39
Livereload script
/*
Live.js - One script closer to Designing in the Browser
Written for Handcraft.com by Martin Kool (@mrtnkl).
Version 4.
Recent change: Made stylesheet and mimetype checks case insensitive.
http://livejs.com
http://livejs.com/license (MIT)
@livejs
@beathorst
beathorst / ish-bookmarklet.js
Created November 18, 2015 09:38 — forked from mremco/ish-bookmarklet.js
Bookmarklet that opens the current page into Brad Frost's ish. viewport resizing tool (http://bradfrostweb.com/demo/ish/). Ish. is opened in a new tab.
Standard mode:
javascript:var current_location=document.URL; var load=window.open('http://bradfrostweb.com/demo/ish/?url='+encodeURIComponent(current_location));
Open in disco mode!
javascript:var current_location=document.URL; var load=window.open('http://bradfrostweb.com/demo/ish/?url='+encodeURIComponent(current_location)+'#disco');
@webhat
webhat / Oplerno Edit Page.markdown
Created August 27, 2015 09:07
Oplerno Edit Page
@amerberg
amerberg / bookmarklets.js
Last active July 25, 2016 02:15
Quora bookmarklets
/* These are bookmarks for making various tasks on Quora easier.
* Since GitHub Markdown doesn't allow JavaScript links, you'll have to install the complicated way.
* Each of the lines beginning with `javascript:` below is a bookmarklet.
* To install, create a new bookmark in your browser and paste that line as the URL.
* Leave feedback in Gist comments or contact https://www.quora.com/Adam-Merberg
*/
//Get the rank of the answer belonging to the logged-in user (in a JS alert box).
//You will have to scroll down far enough that your answer has loaded before you use it.
//Perhaps a future version will do that automatically.
Bookmarklet

Copy and paste this into a bookmark:

javascript:!function(d){d.head.appendChild(d.createElement("style")).innerText="html,img,video{-webkit-filter:invert(1)hue-rotate(180deg);filter:invert(1)hue-rotate(180deg)}body{background:#000}"}(document);
@duzun
duzun / hakces.php
Last active May 13, 2021 13:41
Decoded hack code from http://pastebin.com/8asDWWrJ
<?php
/**
* Decoded hack code from http://pastebin.com/8asDWWrJ
*
*/
//###=###
error_reporting(0);
ini_set("display_errors", "0");
$_key = 'f8e7ff5a';
@djmitche
djmitche / 00_tldr.md
Last active July 25, 2016 01:57
(1118394) Notes on running Android builds in TaskCluster

Goal

"Drive Android builds out of taskcluster" .. meaning to run builds of Firefox for Android (we don't build Android) within taskcluster.

The idea is to get something non-b2g from releng running in taskcluster, both as a learning opportunity and as a proof of concept.

Task List

  • build a docker image for building Android using the tools in alder
  • build Android by hand / shell script in that docker image
  • do a basic Android build in a simple, docker-compatible way
  • handle tooltool cache
@PaulKinlan
PaulKinlan / builder.html
Last active May 19, 2019 16:55
Bookmark Builder
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bookmarklet</title>
<script>
window.onload = function(e) {
var bookmark = document.getElementById("bookmark");
var code = document.getElementById("code");