packages feed

https-everywhere-rules-raw-4.0: vendor/https-everywhere/src/chrome/content/rules/LiveJournal.xml

<!--
	CDN buckets:

		- s3.amazonaws.com/status-livejournal/
		- l-stat.livejournal.com.cdngc.net
		- l-userpic.livejournal.com.cdngc.net
		- ic.pics.livejournal.com.cdngc.net


	Nonfunctional subdomains:

		- files		(redirects to www)
		- l-userpic	(403, CN: ssl.cdngc.net)
		- ic.pics	(reset)
		- xc3.services	(dropped)
		- user		(404)


	Problematic subdomains:

		- l-stat	(403, CN: ssl2.cdngc.net)


	Partially covered subdomains:

		- (www.)
		- status	(→ s3.amazonaws.com)


	Fully covered subdomains:

		- l-stat	(→ s3.amazonaws.com & stat)
		- stat


	Caution: LiveJournal breaks us proactively.

-->
<ruleset name="LiveJournal (partial)">

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


	<!--	paths under img/ & stc/ have started redirecting to http.

		.n|n, LJ.
			-->
	<rule from="^http://(www\.)?livejournal\.com/(?=(?:changepassword|create|login)\.html|manage/|shop/)"
		to="https://$1livejournal.com/" />

	<rule from="^http://status\.livejournal\.com/img/"
		to="https://s3.amazonaws.com/status-livejournal/img/" />

	<!--	Also on stat.livejournal.com, but as these are
		on a CDN too, be kind and point there instead.
								-->
	<rule from="^http://(?:l-)stat\.livejournal\.com/img/error-pages/(?=bg-error-page\.jpg|bullet-round-grey\.gif|frank\.png|logo-lj\.png|rule-grey\.gif)"
		to="https://s3.amazonaws.com/status-livejournal/img/" />

	<rule from="^http://(?:l-)?stat\.livejournal\.com/"
		to="https://stat.livejournal.com/" />

	<!--	User journal entries work, but user pages redirect to www.

		This broke, but appears to work again.
							-->
	<rule from="^http://([\w-]+)\.livejournal\.com/(?=\d+\.html)"
		to="https://$1.livejournal.com/" />

	<!--rule from="^https://www\.livejournal\.com/stc/img/error-pages/"
		to="https://www.livejournal.com/img/error-pages/" /-->

</ruleset>