Welcome to Assassin's Creed Wiki! Log in and join the community.

User:Vatsa1708/wikia.js: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Vatsa1708
mNo edit summary
imported>Vatsa1708
mNo edit summary
Line 1: Line 1:
/** remove admin link on toolbar **/
/*######################################################*/
$().ready( function() {
/*Disable editing of talk page archives                */
$('li > a[data-tracking="admindashboard/toolbar/admin"]').remove();
/*Version 0.25                                        */
} );
/*Script by User:Porter21 (http://fallout.wikia.com) */
/*i18n function by User:Dantman                    */
/*#################################################*/


function urlQuery(quer) {
var DisableArchiveEditConfig = {  
for(i in location.href.split('?')) {
  archiveSubpage: 'Archive',
for(j in location.href.split('?')[i].split('&')) {
  disableCompletely: true,
if(location.href.split('?')[i].split('&')[j].split('=')[0] == quer) {
  textColor: '#D9D9D9',
return location.href.split('?')[i].split('&')[j].split('=')[1];
  userLang: true
}
};
}
importScriptPage('DisableArchiveEdit/code.js', 'dev');
}
return '';
}

Revision as of 14:57, 14 September 2011

/*######################################################*/
/*Disable editing of talk page archives                */
/*Version 0.25                                        */
/*Script by User:Porter21 (http://fallout.wikia.com) */
/*i18n function by User:Dantman                     */
/*#################################################*/

var DisableArchiveEditConfig = { 
   archiveSubpage: 'Archive',
   disableCompletely: true,
   textColor: '#D9D9D9',
   userLang: true
};
importScriptPage('DisableArchiveEdit/code.js', 'dev');