Closed Bug 1057843 Opened 10 years ago Closed 10 years ago

page-mod

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: awesand, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446

Steps to reproduce:

how to do i match a hostname, or some hostname need not like URL style.
it like "image.org/" or my computer name to be a hostname, this is a hostname resolve, some href are not begin with http:// http://, event without www, just a hostname, page-mod include not meet this case. it tell wrong? 
how i can do this, when in this case?



Actual results:

 using *.example.org wildcard, the string supplied is expected to be either an exact URL to match or a URL prefix. The provided string ('gnway.cc') is unlikely to match any pages.
this is an url, not include "www"

using *.example.org wildcard, the string supplied is expected to be either an exact URL to match or a URL prefix. The provided string ('WIN7-Link') is unlikely to match any pages.

this is my computer name, i want match it.
You can use Regular Expressions for the "include" match pattern, which let you match pretty much anything that you want, see https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/page-mod#PageMod%28options%29

If this doesn't resolve the issue then please elaborate, or ask for help in the #jetpack channel on irc.mozilla.org
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.