MediaWiki talk:SpoilerAlert.js

Submitted script change rejected
The recently submitted change to this JS script was rejected by the Wikia review process. Please make sure you meet the Custom JavaScript guidelines.

This spoiler script cannot be used on every page on the wikia. Blurring out every single page until a click is made is not allowed. Please ensure that there is a spoiler alert seen plainly on the main page instead. If the notice needs to be on every page, it would have to be prepended to the article space (without a blur). This can be done through site JS.

I have disabled the script for now. Please contact us if you have any questions. Rappy 18:44, October 5, 2015 (UTC)


 * We held a discussion about this topic where we agreed in the need of this type of alert. We had previously a big red spoiler warning at the top of the main page and it didn't work, the percentage of people coming through the main page is minimal, and they seemed to ignore it anyway. We also had spoiler warnings at the top of each article and they were useless too. Even though they were red and written in big caps, people still ignored them and we received many complaints about the spoilers, so we agreed in the need of using this kind of pop-ups that are the only way to ensure that nobody will ignore the warnings.


 * Moreover, the script do not blurs out the whole page, all the ads are intact so it does not violate the policies; and not every single page is affected, because the main page is exempt, and also the special pages, project pages, templates, message walls, user profiles, talk pages, forum, blogs, etc.


 * Also, the pop-up only appears the first time a user visits the Wiki, and not in all the subsequent times they return. In that aspect it is even less intrusive than the original script, which we don't want to use due to its annoying behavior and which is used in many wikis without problems of approval. In the recent update I added an expiration time of 1 month before the pop-up reappears, but that time limit can be extended or removed.


 * I read the customization policy and I didn't see anything about why this script couldn't be allowed. All the previous revisions were approved, and the only changes made in the latest revision were the addition of the expiration time and the blurring of the titles, so I really don't understand why it was not approved this time.--Manuel de la Fuente (talk) 20:45, October 5, 2015 (UTC)


 * Per my previous statement, this manner of using the spoiler code is not allowed. As I stated previously, if a message is needed on every single page of the wikia, the only way you can do that and still be compliant is to add the notice to the top of each page. At that point, if your users do not read a very plain and obvious spoiler notice, they would have to take responsibility for spoiling themselves.


 * Another way to do this is to utilize the  segments from the original script and only block those.


 * Please do not revert the script again as this, in its present form, is not a customization we can allow. Rappy 18:25, October 7, 2015 (UTC)


 * Ok, I modified the script and now it only works in articles within the category "Spoilers". In your experience, which method loads faster: making the script check the categories or detecting an element with a certain ID/class?--Manuel de la Fuente (talk) 05:04, October 8, 2015 (UTC)


 * I have approved the latest revision. My only concern is that mass pages will be added to this category. Please be conservative and do not add all pages to this category or, once again, the script will need to be altered. Thanks for your understanding. Rappy 15:22, October 8, 2015 (UTC)