Skip to content

Instantly share code, notes, and snippets.

@illusionfield
illusionfield / bookmarklet-syntax.js
Last active May 24, 2025 14:53
Translate Bookmarklets
/**
* Web browsers use URIs for the href attribute of the <a> tag and for bookmarks. The URI scheme, such as http:, file:, or ftp:, specifies the protocol and the format for the rest of the string.
* Browsers also implement a prefix javascript: that to a parser is just like any other URI.
* Internally, the browser sees that the specified protocol is javascript, treats the rest of the string as a JavaScript application which is then executed, and uses the resulting string as the new page.
*
* The executing script has access to the current page, which it may inspect and change.
* If the script returns an undefined type (rather than, for example, a string), the browser will not load a new page, with the result that the script simply runs against the current page content.
* This permits changes such as in-place font size and color changes without a page reload.
*/
@joefg
joefg / 8080.op
Created July 27, 2015 14:44
A list of all 8080 opcodes. Mirror of Textfiles (http://textfiles.com/programming/8080.op) for posterity
Summary of 8080 Instructions
------- -- ---- ------------
Abbreviations used in this Summary:
R Any of the 8-Bit registers A,B,C,D,E,H,L.
data Any 8-bit or 16-bit value.
PC Program Counter.
SP Stack Pointer.