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
// ==UserScript== | |
// @name Remove from Google News | |
// @namespace http://duncanandmeg.org | |
// @description Removes the "Google Fast Flip" section | |
// @include http://news.google.com/ | |
// ==/UserScript== | |
// Add jQuery | |
var GM_JQ = document.createElement('script'); | |
GM_JQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'; |
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
// converted for the Ubiquity Parser 2 by Duncan Johnson on 1/22/2010 | |
// Response to conversation here http://bit.ly/6TO8Xg | |
noun_version_name = new CmdUtils.NounType("version", ["nkjv", "kjv", "niv"]); | |
CmdUtils.CreateCommand( | |
{ | |
names: ['bible-search'], | |
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'passage'}, | |
{role: 'format', nountype: noun_version_name, label: 'version'}], |
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
// ==UserScript== | |
// @name Insert class links from remote location | |
// @namespace http://www.duncanandmeg.org/ | |
// @description Pulls down links from one of my instapaper.com folder RSS feeds and inserts them into a page. Let him who understandeth modify to his own satisfaction! | |
// @author Duncan Johnson | |
// @include http://home.bju.edu/ | |
// @include https://home.bju.edu/ | |
// ==/UserScript== | |
/* |
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
CmdUtils.CreateCommand({ | |
names: ["check parentheses"], | |
icon: "http://www.mozilla.com/favicon.ico", | |
description: "Does a simple arithmetic check to see if a selected line of code has enough parentheses.", | |
//help: "How to use your command.", | |
author: {name: "Duncan Johnson", email: "duncan@duncanandmeg.org"}, | |
license: "GPL", | |
homepage: "http://andyanglea.com/blog/2009/08/if-problems/", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { |
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
Discussion @ http://andyanglea.com/blog/2009/08/if-problems | |
Error-free case: | |
12 1 23 4 3 2 3 4 3210 NO ERRORS | |
01 2 12 3 4 3 2 3 4321 NO ERRORS | |
if (($condition1 != $a) || ((len($condition2) == $b) && (!isset($_POST['submit'])))) { | |
Missing one ( case: | |
1* 0 12 3 2 1 2 3 210- ERROR DETECTED (ends with negative number) | |
1* 2 12 3 4 3 2 3 4321 ERROR DETECTED (ends with positive number) |
NewerOlder