-
-
Save szupie/42988 to your computer and use it in GitHub Desktop.
Command for cached copy and backward links of the current page
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 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