Gaming
 
[Silverstrike]

Silverstrike 1,229 edits since December 14, 2008

1,229

From Mass Effect Wiki

My current game profile

[edit] Current projects

  • Add screenshots to every article that may need images - currently working on updating every character page to include at least one clear and bright image.
  • Working on the Talents and Abilities icons - there are couple of those left (Neural Shock and Unity).
  • Thinking about an indexing solution to easily reach article (particularly for new users).

[edit] Maintained Articles

[edit] Additional info

[edit] Avoiding ME2 Spoilers

Due to the fact that I do not like Spoilers, I have written a small JavaScript script that acts as an article blocker, by scanning an articles the user browse to, and redirecting back on either of two conditions:


If the article contains the Mass Effect 2 category:

var restrictPage = "Mass Effect 2";
var message = "Restricted page reached";

var getCategories = document.getElementById("mw-normal-catlinks").getElementsByTagName("span");
for(var i=0; i<getCategories.length; i++){
  if (getCategories[i].getElementsByTagName("a")[0].innerHTML == restrictPage){
    alert(message);
    if(history.length < 2) location.href="http://masseffect.wikia.com";
    else history.back();
  }
}

Upon finding the category, the script will alert the message indicated in message variable, which can be altered from "Restricted page reached" to anything suiting your needs, and redirect back. This script can also be used as a GreaseMonkey plug-in. The complete GreaseMonkey script can be downloaded from: http://themissingsource.com/RestrictPage.js


If the article contains the Template:MassEffect2Spoilers tag:

var restrictPage = "me2spoilers";
var message = "Restricted page reached";

var checkSpoilerTag = document.getElementById(restrictPage);
if(checkSpoilerTag != null){
  alert(message);
  if(history.length < 2) location.href="http://masseffect.wikia.com";
  else history.back();
}

Upon finding the Template:MassEffect2Spoilers tag, the script will alert a message (see above) and redirect back.


The scripts can be inserted to the personal JavaScript template page, that is located at: http://masseffect.wikia.com/wiki/User:Username/monaco.js (replacing User:Username with the logged-in username).

I encourage you to leave me a message at the talk page for suggestions, ideas, similar scripts, etc.