<!--
	For problematic rules, see Deviantart-mismatches.xml.


	Other deviantArt rulesets:

		- Sta.sh.xml


	Insecure cookies are set for these domains: ᶜ

		- .deviantart.com

	ᶜ See https://owasp.org/index.php/SecureFlag


	Mixed content:

		- Images, on:

			- shop. ... .com, www from www.da-files.com ᵐ
			- *. ... .com from e.deviantart.net ˢ
			- www from t\d\d.deviantart.net ˢ

	ᵐ Not secured by us <= mismatched
	ˢ Secured by us, see https://www.paulirish.com/2010/the-protocol-relative-url/


	Note: A site operator previously asked for this rule to be
	disabled with the rationale of the site's https deployment
	not having been ready at that point.

	As such, this ruleset is marked as mixedcontent so as to
	be enabled in torbrowser only.

	We're waiting for:

		- test (elements)
		- More feedback from ( https-e user ∪ da user ) testers
		- Statements from DA webmasters affirming that the site is ready

-->
<ruleset name="DeviantArt (waiting for webmasters to indicate site is ready)" platform="mixedcontent">

	<target host="deviantart.com" />
	<target host="*.deviantart.com" />
	<target host="deviantart.net" />
	<target host="*.deviantart.net" />

		<!--	Per https://github.com/EFForg/https-everywhere/pull/2861
									-->
		<exclusion pattern="^http://chat\.deviantart\.(?:com|net)/" />

			<!--	+ve:
					-->
			<test url="http://chat.deviantart.com/" />
			<test url="http://chat.deviantart.net/" />

		<!--	Mismatched, =/=> .com
						-->
		<exclusion pattern="^http://l\.deviantart\.net/" />

			<!--	+ve:
					-->
			<test url="http://l.deviantart.net/" />

		<!--	Direct rewrites (1st rule):
						-->
		<test url="http://27d.deviantart.com/" />
		<test url="http://chat.deviantart.com/" />
		<test url="http://l.deviantart.com/" />
		<test url="http://shop.deviantart.com/" />
		<test url="http://www.deviantart.com/" />
		<test url="http://a.deviantart.net/avatars/default.gif" />
		<test url="http://e.deviantart.net/emoticons/b/bulletgreen.gif" />
		<test url="http://img00.deviantart.net/ca7e/i/2013/276/d/b/pokemon___triple_charizards_by_sa_dui-d6p54in.jpg" />
		<!--
		<test url="http://img06.deviantart.net/b5f0/i/2015/207/b/b/art_improvement_meme__2012_2015__by_aquiverx-d92unh4.jpg" />
		-->
		<test url="http://img07.deviantart.net/9096/i/2014/108/f/1/cookie_monster_cupcakes_by_cakecrumbs-d5aflte.jpg" />
		<!--
		<test url="http://img10.deviantart.net/c51a/i/2016/025/b/f/bored_3_4_view__pose_reference__by_vividlyvictoria-d9lxgt6.jpg" />
		<test url="http://img12.deviantart.net/bbdc/i/2016/036/d/3/meet_the_artist__by_renkarts-d9qknmj.jpg" />
		-->
		<test url="http://img14.deviantart.net/d451/i/2016/190/8/d/holtzmann_by_gido-da9d4tp.jpg" />
		<test url="http://orig00.deviantart.net/0611/f/2008/176/c/c/superman_in_flight_by_jprart.jpg" />
		<!--
		<test url="http://orig03.deviantart.net/bea4/f/2010/363/2/a/_love__by_cookiemagik-d35xgjx.gif" />
		<test url="http://orig04.deviantart.net/a00e/f/2016/190/7/7/brandtini___by_4rca-da9d09p.jpg" />
		<test url="http://orig05.deviantart.net/6558/f/2014/338/5/3/537b81c4d8bc6a267d0774cda3a52fb4-d88pl1b.gif" />
		-->
		<test url="http://orig07.deviantart.net/6841/f/2010/358/0/4/merry_christmas_everybody_by_meninasuitcase-d35krat.gif" />
		<!--
		<test url="http://orig11.deviantart.net/91a0/f/2008/198/7/4/custom_yahoo_tongue_emoticon_by_whitedragon1983.gif" />
		-->
		<test url="http://orig15.deviantart.net/6a2f/f/2016/174/3/f/alexstrasza___ruby_sanctum_by_narga_lifestream-da7bkwh.jpg" />
		<test url="http://pre02.deviantart.net/0573/th/pre/i/2015/334/e/6/149_kirby_charity_flight_by_tommygk-d9gvdft.jpg" />
		<test url="http://pre07.deviantart.net/a2a5/th/pre/i/2016/090/9/2/glitter_trails_by_renkarts-d9x8s87.jpg" />
		<test url="http://pre14.deviantart.net/16bf/th/pre/f/2016/189/6/6/tumbledump_xviii_by_adoradora-da9b2f7.jpg" />
		<test url="http://st.deviantart.net/minish/deviation/artist-comment-l.gif?2" />
		<test url="http://t00.deviantart.net/OA-TCLekcOjVR_n3_XB13rnv_0k=/300x200/filters:fixed_height(100,100):origin()/pre08/4b74/th/pre/i/2016/081/7/d/dancer_by_danika_stock-d9w38vx.jpg" />
		<!--
		<test url="http://t01.deviantart.net/1R6j6NZfNmgd-p6elV7mMIDiEts=/300x200/filters:fixed_height(100,100):origin()/pre09/979f/th/pre/f/2016/187/a/5/the_shadowlands__7_4_16__by_skelefrog-da8xyjl.png" />
		<test url="http://t02.deviantart.net/4wgzpZZacuM_Sr3qkvSExypW2BQ=/300x200/filters:fixed_height(100,100):origin()/pre13/26df/th/pre/f/2007/067/9/b/pink_flamingo_by_golfiscool.jpg" />
		<test url="http://t03.deviantart.net/vVcKBdBO6KfE8Gb9hcoEWVpPHQU=/fit-in/300x900/filters:no_upscale():origin()/pre11/6aa7/th/pre/i/2015/270/a/4/games_at_monlight_by_energiaelca1-d9b41p5.jpg" />
		<test url="http://t04.deviantart.net/K66DxcFskVN2XZrMNManQvTzddo=/fit-in/150x150/filters:no_upscale():origin()/pre04/2214/th/pre/i/2015/207/b/b/art_improvement_meme__2012_2015__by_aquiverx-d92unh4.jpg" />
		<test url="http://t05.deviantart.net/rdk-c-NVi-iXIgW9zuQDJ6lDMh4=/300x200/filters:fixed_height(100,100):origin()/pre08/8838/th/pre/i/2014/130/2/c/adad__168_by_paperplait-d7htgum.jpg" />
		<test url="http://t06.deviantart.net/-FvUNEv8YnxeiaqyjBJHxjY3_j8=/300x200/filters:fixed_height(100,100):origin()/pre04/3d43/th/pre/i/2015/222/0/6/modern_portrait__5_by_faestock-d951voo.jpg" />
		<test url="http://t07.deviantart.net/l2pobBbVhSJEJ2WsS9uMSEYP_mI=/300x200/filters:fixed_height(100,100):origin()/pre03/17c1/th/pre/i/2016/014/5/c/grumpy__pose_reference__by_vividlyvictoria-d9lqu08.jpg" />
		-->
		<test url="http://t08.deviantart.net/2t0n7wqxjyq6VweE4c6mUm5LiIw=/300x200/filters:fixed_height(100,100):origin()/pre07/f5dc/th/pre/i/2016/126/e/1/body_reference___sitting_in_chair__legs_crossed_by_danika_stock-d9w366f.jpg" />
		<!--
		<test url="http://t09.deviantart.net/y6RZ8gArDEPkEiE08NtgNtN0sZo=/300x200/filters:fixed_height(100,100):origin()/pre06/5377/th/pre/i/2016/126/f/6/body_reference___standing___hands_in_front_by_danika_stock-d9w35wa.jpg" />
		<test url="http://t10.deviantart.net/o8CjsE082jeyI3csZ2s4aS59vIM=/300x200/filters:fixed_height(100,100):origin()/pre01/c21e/th/pre/f/2016/081/1/8/relax_by_danika_stock-d9vmorr.jpg" />
		<test url="http://t11.deviantart.net/NfirXErnmL8e8WxOlmlmU6P8F6c=/300x200/filters:fixed_height(100,100):origin()/pre02/d251/th/pre/f/2016/121/7/a/kuon1_by_4rca-da0v0lt.jpg" />
		<test url="http://t12.deviantart.net/ZgGAEprjP8FvoABACj7DGHZifJE=/300x200/filters:fixed_height(100,100):origin()/pre06/5058/th/pre/i/2016/026/8/f/over_the_shoulder__pose_reference__by_vividlyvictoria-d9lqht5.jpg" />
		<test url="http://t13.deviantart.net/qu9Uix1ya0sKj46Q_MSeJ5TPvwY=/fit-in/150x150/filters:no_upscale():origin()/pre03/8ab3/th/pre/f/2016/190/7/7/brandtini___by_4rca-da9d09p.jpg" />
		<test url="http://t14.deviantart.net/eQ8PnepAIFf1JSPXZVzmKT9as4o=/300x200/filters:fixed_height(100,100):origin()/pre11/19a1/th/pre/i/2016/127/6/7/crouching_with_staff__pose_reference__by_vividlyvictoria-da1p7a9.jpg" />
		-->
		<test url="http://t15.deviantart.net/0ykeQqfSrPS7K0HEHr0yQpQe5Mw=/fit-in/150x150/filters:no_upscale():origin()/pre11/8bbd/th/pre/f/2016/189/3/8/_outro__cenrio_by_janainaart-da9aykg.jpg" />

		<!--	Complications (2nd rule):
						-->
		<test url="http://27d.deviantart.net/" />
		<test url="http://www.deviantart.net/" />


	<!--	Not secured by server:
					-->
	<!--securecookie host="^\.deviantart\.com$" name="^(?:__qca|userinfo)$" /-->

	<securecookie host="." name="." />


	<!--rule from="^http://www\.da-files\.com/"
		to="https://???.cloudfront.net/" /-->

		<!--test url="http://www.da-files.com/creative/sketch-this/tpw-sketch-this.jpg" /-->

	<!--	Redirects from com to net, but does so successfully by itself.
										-->
	<rule from="^http://([aei]|fc\d\d|img\d\d|orig\d\d|pre\d\d|s[ht]|th?\d\d)\.deviantart\.(com|net)/"
		to="https://$1.deviantart.$2/" />

	<!--	This handles everything that isn't in the first rule and
		isn't excluded.
			These domains present a cert that is only
		valid for .com.
			Note that .net isn't used on DA, but.net does
		redirect to .com, and we shouldn't break what would
		otherwise work.
			Mustn't rewrite from https here, as doing so
		would conflict with the first rule.
								-->
	<rule from="^http://([^/:@.]+\.)?deviantart\.(?:com|net)/"
		to="https://$1deviantart.com/" />

</ruleset>
