Greasemonkey 笔记

Published on 星期六, 三月 18th, 2006

Dive Into Greasemonkey
Mark Pilgrim


Note:

Link:

  • Web: http://greasemonkey.mozdev.org
  • Script repository: http://dunck.us/collab/GreaseMonkeyUserScripts
  • tag: URIs http://taguri.org/>
  • Inspect Element extension: Right−click on the element, From the context menu, select Inspect element. DOM Inspector should open with the H1 element already selected, and you can immediately start inspecting and/or editing its properties.
  • Other debugging tools
    • Web Developer Extension http://chrispederick.com/work/firefox/webdeveloper/> contains a plethora of functions for deconstructing pages.
    • Aardvark http://www.karmatics.com/aardvark/> interactively displays tag names, id and class attributes.
    • Venkman Javascript Debugger http://www.hacksrus.com/~ginda/venkman/> is a complete run−time Javascript debugger.
    • Web Development Bookmarklets http://www.squarefree.com/bookmarklets/webdevel.html> contains a
      number of useful functions you can drag to your toolbar.
    • JSUnit http://www.edwardh.com/jsunit/> is a unit testing framework for Javascript.
    • js−lint http://www.crockford.com/javascript/lint.html> checks Javascript code for common errors.
  • Mozilla XPath documentation http://www−jcsu.jesus.cam.ac.uk/~jg307/mozilla/xpath−tutorial.html> ·
    XPath tutorial by example http://www.zvon.org/xxl/XPathTutorial/General/examples.html> ·
    XPathResult reference http://www.xulplanet.com/references/objref/XPathResult.html>
  • http://adblock.mozdev.org/> and import an up−to−date filter list
  • Use the data: URI kitchen http://software.hixie.ch/utilities/cgi/data/data> to construct your own data: URLs.
  • CSS properties http://www.westciv.com/style_master/academy/css_tutorial/properties/>
  • Extension Developer’s Extension http://ted.mielczarek.org/code/mozilla/extensiondev/> is invaluable for
    debugging and testing Firefox extensions.
  • An .xpi file is really just a ZIP archive with a certain directory structure. You can use any ZIP program (such as 7−zip http://www.7−zip.org/> for Windows

Others:

  • firefox −safe−mode

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

提示:如果你刚刚提交过评论,但是还没有被显示出来,请点击这里刷新一下: 刷新评论