Skip to content

Instantly share code, notes, and snippets.

@szupie
Created January 4, 2009 02:29
Show Gist options
  • Save szupie/42988 to your computer and use it in GitHub Desktop.
Save szupie/42988 to your computer and use it in GitHub Desktop.
Command for cached copy and backward links of the current page
function cmd_cached_copy() {
var url = Application.activeWindow.activeTab.document.location.href;
url = "http://www.google.com/search?hl=en&q=cache:" + url;
CmdUtils.getWindowInsecure().location = url;
}
cmd_cached_copy.description = "Searches for the cached copy of this page using Google.";
cmd_cached_copy.icon = "http://www.google.com/favicon.ico";
cmd_cached_copy.author = {name: "szupie", email: "szupie@gmail.com"};
function cmd_backward_links() {
var url = Application.activeWindow.activeTab.document.location.href;
url = "http://www.google.com/search?hl=en&q=link:" + url;
CmdUtils.getWindowInsecure().location = url;
}
cmd_backward_links.description = "Searches for links to this page using Google.";
cmd_backward_links.icon = "http://www.google.com/favicon.ico";
cmd_backward_links.author = {name: "szupie", email: "szupie@gmail.com"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment