Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions src/chrome/content/rules/XHamster.com.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<!--
xHamster uses *.xhcdn.com and cdn13.com
As far as I can tell all of it either only supports http or redirects from https to something else.

Nonfunctional subdomains on xhcdn.com
- ept *
- et13 *
- ut0[0-9] *
- ut1[0-9] *

Nonfunctional subdomains on cdn13.com
- a8-19.clients *

CDN buckets:

- xhamster.uservoice.com
Expand Down Expand Up @@ -29,6 +41,7 @@

- (www.)
- eu-st
- us-st
- static


Expand All @@ -39,6 +52,7 @@
- et\d *
- et1\d *
- eu-st **
- us-st **
- p1 *

- Web/ads bug on www from adscnt2 ***
Expand All @@ -51,11 +65,20 @@
*** Unsecurable

-->
<ruleset name="xHamster.com (buggy)" default_off="reportedly breaks videos">
<ruleset name="xHamster.com">

<target host="xhamster.com" />
<target host="*.xhamster.com" />

<target host="www.xhamster.com" />
<target host="us-st.xhamster.com" />
<target host="eu-st.xhamster.com" />
<target host="secure.xhamster.com" />
<target host="static.xhamster.com" />
<target host="suggestions.xhamster.com" />

<!-- without this videos break when using flash -->
<exclusion pattern="^http://static\.xhamster\.com/crossdomain\.xml" />
<test url="http://static.xhamster.com/crossdomain.xml" />
<test url="http://static.xhamster.com/crossdomain.xml?foo" />

<!-- Not secured by server:
-->
Expand All @@ -67,11 +90,9 @@
-->
<!--securecookie host="^\.xhamster\.com$" name="^(mdg:uid|mobileType|prid)$" /-->

<rule from="^http://suggestions\.xhamster\.com/"
to="https://xhamster.uservoice.com/" />

<rule from="^http://((?:eu-st|secure|static|www)\.)?xhamster\.com/"
to="https://$1xhamster.com/" />

<rule from="^http://suggestions\.xhamster\.com/track\.gif"
to="https://xhamster.uservoice.com/track.gif" />

<rule from="^http:"
to="https:" />
</ruleset>