开发者

KRL: How to fire on all domains

开发者 https://www.devze.com 2023-02-06 02:38 出处:网络
I have been working on a personal project for a few months. A large majority of my frustration stems from the fact that I am building my own extension from scratch. I am only half way done with the pr

I have been working on a personal project for a few months. A large majority of my frustration stems from the fact that I am building my own extension from scratch. I am only half way done with the project, and I am nervous that getting the code to port to IE and Chrome won't be as easy as I hoped it would be.

I had initiall开发者_StackOverflow社区y wanted to use Kynetx for this project, however I was told that it wasn't possible to get your app to fire on all domains. In chatting with Mike Grace, he told me that it IS possible. Can someone explain how?


In the dispatch block you can set a domain of

.*

Which in a full ruleset looks like this

ruleset a60x554 {
  meta {
    name "all-domains-dispatch-test"
    description <<
      all-domains-dispatch-test
    >>
    author "Mike Grace"
    logging on
  }

  dispatch {
    domain ".*"
  }

  rule muahahaha {
    select when pageview ".*"
    {
      notify(": )","All your domain belong to us!") with sticky = true;
    }
  }
}

I know this works with the Firefox and Chrome extensions but I have never tested it with an IE extension.

Action shots!

KRL: How to fire on all domains

KRL: How to fire on all domains

KRL: How to fire on all domains

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号