dotjs-addon icon indicating copy to clipboard operation
dotjs-addon copied to clipboard

subdomains

Open wraithan opened this issue 12 years ago • 6 comments

I wrote some css for pastebin.mozilla.org and I expected it to always load, but I found on subdomains other than www it doesn't load. I went through the code and see where it excludes www. from the host then looks for an exact match.

I can see why you look for an exact match (subdomains can be completely different sites and you may not wan to apply your js or css) but it seems like this could be a preference (I see you don't have any yet so I understand if that is not the way you want to go).

I propose that it looks for an exact match, then chops off the sub-ist of the subdomains, and looks again until it finds a match.

wraithan avatar Apr 18 '13 01:04 wraithan

If it's only for pastebin, you can name it pastebin.mozilla.org.js.

I have one called supportadm.private.phx1.mozilla.com.js for example.

Or are you asking for something else?

rlr avatar Apr 18 '13 16:04 rlr

Well for pastebin.mozilla.org, there are also people like andy and I who have our own pastebins there, wraithan.pastebin.mozilla.org which doesn't get caught if you don't fully qualify the domain.

wraithan avatar Apr 18 '13 16:04 wraithan

Oh I see. Your proposal is reasonable to me. I probably didn't do it like that originally due to pure laziness.

rlr avatar Apr 18 '13 16:04 rlr

I've implemented this on #38 Any chance somebody with write access could take a look?

eridal avatar Jul 17 '15 19:07 eridal

what is file name for this domain: http://www.bing.com/search

dadmor avatar Jul 27 '16 08:07 dadmor

You could use just www.bing.com.js and then check for /search on location.href

Think there's an example on the README on how to check for the path.

eridal avatar Jul 27 '16 12:07 eridal