Changes

Jump to: navigation, search

Learning Collaborative Development Lab Fall 2008 Results

3,861 bytes added, 16:33, 12 September 2008
m
Cuil Search: added my submission
----
 
====Go to a specific web page using Aliases or URL====
[[User:Hellwolf36]]
This add-on allows you to go to a specific web page using goto (url). You may also specify an alias that will take you to a different location without having to specify the complete URL (to add on your own, you must add on to the source array, and to the noun listing.
 
noun_type_link = new CmdUtils.NounType( "link",["blog","facebook","mail","google","battleforums",
"south-park","japtoeng","wwe","zy-el","zenit-wiki", "pso",
"d2m", "nezmod", "schtserv", "mySeneca","Senecamail",
"orderofthestick", "8bit", "news"]);
 
CmdUtils.CreateCommand({ name: "goto",
takes: {url: noun_type_link},
description: "Causes the browser to open a specific webpage via URL or Keywords",
//Original author: {name: "benny sheerin"}, url: "http://www.bennysheerin.com/cmd_news.js",
//This Version Author
author: {name: "Chris Cameirao"}, url: 'http://zenit.senecac.on.ca/wiki/',
preview: function(preview,vendor)
{
if(vendor.text != "")
{
preview.innerHTML = "Opens "+vendor.text+" in a new window or tab.";
}
else
{
preview.innerHTML = "Opens the selected URL in a new window or tab.";
}
},
execute: function(vendor)
{ //Site listing
 
//Keywords
var sources = new Array();
sources['facebook'] = 'http://www.facebook.com/';
sources['mail'] = 'http://www.hotmail.com/';
sources['google'] = 'http://www.google.com/';
sources['battleforums'] = 'http://www.battleforums.com/';
sources['wwe'] = 'http://www.wwe.com/';
sources['zy-el'] = 'http://http://zyel.wikispaces.com/';
sources['zenit-wiki'] = 'http://zenit.senecac.on.ca/wiki/';
sources['homepage'] = 'http://zenit.senecac.on.ca/wiki/index.php/User:Hellwolf36';
sources['japtoeng'] = 'http://http://rut.org/cgi-bin/j-e/dict/';
sources['blog'] = 'http://hellwolf36.blogspot.com/';
sources['south-park'] = 'http://www.southparkzone.com/';
sources['pso'] = 'http://www.pso-world.com/';
sources['schtserv'] = 'http://schtserv.com/forum/';
sources['d2m'] = 'http://www.d2maniacs.org/';
sources['mininova'] = 'http://www.mininova.org/';
sources['nezmod'] = 'http://www.nez.exofire.net/forum/';
sources['mySeneca'] = 'http://my.senecacollege.ca/';
sources['Senecamail'] = 'http://learn.senecac.on.ca/';
sources['orderofthestick'] = 'http://www.giantitp.com/comics/oots.html';
sources['8bit'] = 'http://www.nuklearpower.com/archive.php';
sources['news'] = 'http://www.drudgereport.com';
Utils.openUrlInBrowser(sources[vendor.text]); }
})
 
//Revision History from original
//Replaced Yahoo with Hotmail
//Added some personal sites
//Rewrote preview messages
1
edit

Navigation menu