This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Replacer</title> | |
<style>section {float:left; width:50%;} textarea {width:95%; height: 250px;}</style> | |
</head> | |
<body> | |
<section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.registerProtocolHandler('web+texteditorplugin', window.location.href.replace(/\?.*$/, '') + '?pluginInfo=%s', 'Text editor plugin'); | |
// http://127.0.0.1/TextMunger2/index.html?pluginInfo=web%2Btexteditorplugin%3Aurl%3Dhttp%3A%2F%2Fbrett-zamir.me%2Ftests2 | |
// Todo: use back-up for clicks on protocol handler | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8" /> | |
<title>Bulk Download Helper</title> | |
</head> | |
<body> | |
<b>Steps</b> | |
<ol> | |
<li>If you are downloading something from a separate domain from this server, you must install <a href="https://addons.mozilla.org/en-Us/firefox/addon/flashgot/">Flashgot</a> in Firefox (or an equivalent add-on for other browsers).</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version= | |
1 | |
keywords= | |
TODO: | |
$TODO: | |
// Todo: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint vars:true*/ | |
/* | |
// Example | |
jmlString('div', {'class': 'attVal1', title: 'att<&>Val2'}, [ | |
'a<&b>c', | |
['input', {type: 'text'}], | |
['span', { | |
$on: {click: function (e) {alert(e.target);}}, | |
dataset: {abc: '5', camelCase: '7'}, | |
style: {cssFloat: 'right', marginTop: '17px'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Don't hold me accountable if this is not safe! This is my first batch | |
:: file beyond just opening programs... | |
:: When used in conjunction with http://gist.github.com/221159 , Firefox | |
:: can call this file with the first argument being a file to which to log | |
:: output (error or otherwise), thus enabling applications like command-line | |
:: emulators in Firefox | |
:@echo off | |
:: First argument is the output file, the second argument is the command (e.g., "svn"), and the other arguments up to the last are arguments to be passed after the command, and the last argument is the argument count and is ignored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// As a function or class, the following can be used to execute | |
// command-line programs from Firefox. When used with executing | |
// a batch file with arguments as at | |
// http://gist.github.com/221161/ , Firefox can be made to pipe | |
// success or error output to a file and then retrieve the file | |
// (e.g., to make a FF extension which works as a command-line, | |
// allowing copy-and-paste, logging, etc.) | |
/** | |
* Execute a file on the command line with the given arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
How about a templating system which looked like this? | |
Inspired by http://code.google.com/p/mjst/ and my earlier | |
http://gist.github.com/250870 | |
Could use PHPTAL-style attributes as well, but the use of "j" | |
attributes is for simple, not-so-ugly use and addresses the problem | |
that processing instructions cannot occur within tags/attributes | |
This solution does not necessitate any string or regular expression | |
processing whatsoever; all can be handled by the DOM | |
A pity there are no namespaces with processing instructions (and a pity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function _addClick(browser, textboxID) { | |
return function (e) { | |
try { | |
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | |
function loaded () { | |
try { | |
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | |
var urlbarURL = browser.getUserData('urlbarURL'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xbl xmlns="http://www.w3.org/ns/xbl" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ib="http://brett-zamir.me/ns/ibrowser"> | |
<binding element="ib|browser" id="browser"> | |
<template allow-selectors-through="true" apply-author-sheets="true"> | |
<div id="wrapper"> | |
<h:div> | |
<h:a href="javascript:void(0);" id="back"><</h:a>   | |
<h:a href="javascript:void(0);" id="forward">></h:a>   | |
<h:input id="urlBar" type="text" size="30" /> | |
<h:input type="button" id="go" value="Go!" /> | |
</h:div> |