Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

· Added "clog" snippet for Firebug's unsafeWindow.console.log.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Greasemonkey.tmbundle@7043 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 06344334e98edaf52f1746bdb0bc5db3cd59fe07 1 parent a95d53a
@henrik henrik authored
View
16 Snippets/unsafeWindow_console_log (Firebug).tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>unsafeWindow.console.log("${1:Debug: %o}", ${2:object});</string>
+ <key>name</key>
+ <string>unsafeWindow.console.log (Firebug)</string>
+ <key>scope</key>
+ <string>source.js.greasemonkey</string>
+ <key>tabTrigger</key>
+ <string>clog</string>
+ <key>uuid</key>
+ <string>40106F2C-D041-450F-90B5-365F083D3AAC</string>
+</dict>
+</plist>
View
4 Support/help.markdown
@@ -46,6 +46,10 @@ Strictly speaking a command, but it fits with the snippets.
`log` inserts `GM_log("info")` with `"info"` pre-selected. The next tab stop selects just `ìnfo`. Start typing directly to log a variable, or tab once and then type, to input a string.
+## unsafeWindow.console.log (clog&#x21E5;)
+
+Inserts [Firebug](http://www.getfirebug.com/)'s `unsafeWindow.console.log("Debug: %o", object)` with the string contents pre-selected. The next tab stop selects the object.
+
## GM&#95;setValue and GM&#95;getValue (set&#x21E5; and get&#x21E5;)
View
2  info.plist
@@ -68,6 +68,7 @@
<string>1E7DC081-EE2D-4BBE-9A6D-B6420788F85A</string>
<string>------------------------------------</string>
<string>DCB85498-9420-46DA-9633-089CC29B458D</string>
+ <string>40106F2C-D041-450F-90B5-365F083D3AAC</string>
<string>------------------------------------</string>
<string>47C68051-A520-40CD-A289-87C191F36638</string>
<string>3EE53DB4-8CA6-4112-9CA3-63FE2BFBAA4D</string>
@@ -89,6 +90,7 @@
<string>22137E1C-E20A-4FDD-BFEA-E16FB2AA9BEE</string>
<string>5EB937CB-0C23-4BD6-A0C6-445633CC5748</string>
<string>DCB85498-9420-46DA-9633-089CC29B458D</string>
+ <string>40106F2C-D041-450F-90B5-365F083D3AAC</string>
<string>47C68051-A520-40CD-A289-87C191F36638</string>
<string>ED343BF2-B3DE-4A57-92BB-B7F361C74BE3</string>
<string>3EE53DB4-8CA6-4112-9CA3-63FE2BFBAA4D</string>
Please sign in to comment.
Something went wrong with that request. Please try again.