Updates from 一月, 2010 Toggle Comment Threads | 键盘快捷键

  • burning 10:13 am on 2010年01月19日 链接地址 | 回复  

    Firefox的三款链接检查工具LinkChecker+ Link Evaluator+ Pinger 1.0.1 

    检查网页中的链接状态,找出死链。
    分别用各种颜色标记Fine Link,Broken Link,Time Out Link,Invalid link等。
    LinkChecker
    Link Evaluator
    Pinger 1.0.1
    另外还有三款软件:
    HTML.Link.Validator
    WebLinkValidator
    XENU

     
  • burning 2:01 pm on 2010年01月17日 链接地址 | 回复
    Tags: , FireGestures, 鼠标手势   

    FireGestures 用鼠标手势快速翻页(上一页)(下一页)的脚本 

    下一页

    ———————————————————————-

    // derived from All-in-One Gestures created by Marc Boullet

    ////////////////////////////////////////////////////////////////
    // OPTIONS

    // "prev" or "next"
    // const PREV_NEXT = "prev";
    const PREV_NEXT = "next";

    // part of string which the link should contain
    // const KEYWORDS = ["prev", "上页", "上一页", "前一页", "前页"];
    const KEYWORDS = ["next", "下页", "下一页", "后一页", "后页","后一页>","后一页>>"];

    ////////////////////////////////////////////////////////////////
    // PROGRAM

    // first, we search for LINK tags
    var doc = FireGestures.sourceNode.ownerDocument;
    var links = doc.getElementsByTagName("link");
    for (var i = 0; i < links.length; i++) {
      if (links[i].href &&
          links[i].hasAttribute("rel") &&
          links[i].getAttribute("rel").toLowerCase().indexOf(PREV_NEXT) == 0) {
        loadURI(links[i].href);
        return;
      }
    }

    // second, we search for A tags
    var regexp = new RegExp("(?:" + KEYWORDS.join("|") + ")", "i");
    links = doc.links;
    for (i = 0; i < links.length; i++) {
      if (links[i].href &&
          links[i].textContent &&
          links[i].textContent.match(regexp)) {
        loadURI(links[i].href);
        return;
      }
    }

    上一页

    ———————————————————————-

    // derived from All-in-One Gestures created by Marc Boullet

    ////////////////////////////////////////////////////////////////
    // OPTIONS

    // "prev" or "next"
    const PREV_NEXT = "prev";

    // part of string which the link should contain
    const KEYWORDS = ["prev", "上页", "上一页", "前一页", "前页"];

    ////////////////////////////////////////////////////////////////
    // PROGRAM

    // first, we search for LINK tags
    var doc = FireGestures.sourceNode.ownerDocument;
    var links = doc.getElementsByTagName("link");
    for (var i = 0; i < links.length; i++) {
      if (links[i].href &&
          links[i].hasAttribute("rel") &&
          links[i].getAttribute("rel").toLowerCase().indexOf(PREV_NEXT) == 0) {
        loadURI(links[i].href);
        return;
      }
    }

    // second, we search for A tags
    var regexp = new RegExp("(?:" + KEYWORDS.join("|") + ")", "i");
    links = doc.links;
    for (i = 0; i < links.length; i++) {
      if (links[i].href &&
          links[i].textContent &&
          links[i].textContent.match(regexp)) {
        loadURI(links[i].href);
        return;
      }
    }

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
回复
e
编辑
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
取消