[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: automatically filling out WordPress comment fields



OK, I made
(defun jidanni-w3m-wordpress-comment-who-filler()
  "Fill in WordPress etc. comment form headers with my personal
information. Run this when the next entry field on the page is the
first we want to fill in. Only needed on sites that don't already have
your cookies..."
    (interactive)
    (dolist (i (list "jidanni" "jidanni@xxxxxxxxxxx" "http://jidanni.org/";))
      (w3m-next-form)
      (let* ((act (get-text-property (point) 'w3m-action))
	     (form (cadr act))
	     (id (caddr act))
	     (name (cadddr act))
	     (input i))
	(w3m-form-put form id name input)
	(w3m-form-replace input)))
    (w3m-next-form))
And it works. I bet Firefox can't fill in three fields in one snap!

However, how might I make it first jump down to
the <input id="author"> area on e.g.,
http://lorelle.wordpress.com/2007/10/31/blog-struggles-when-are-too-many-comments-too-many-comments/#comment
so I can invoke it even from the top of that page? Thanks.