User:GravityUp/monobook.js

importScript('User:Ale_jrb/Scripts/igloo.js'); // User:Ale_jrb/Scripts/igloo

importScript('User:iBen/f.js'); importScript('User:TheJosh/Scripts/NewPagePatrol.js')

importScript('User:AzaToth/twinkle.js'); TwinkleConfig = { revertMaxRevisions             :       50, userTalkPageMode               :       'window', showSharedIPNotice             :       true, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert       :       true, summaryAd                      :       " using TW", deletionSummaryAd              :       " using TW", protectionSummaryAd            :       " using TW", watchSpeedyPages               :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ], watchProdPages                 :       true, openUserTalkPageOnSpeedyDelete :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ], watchRevertedPages             :       [ 'agf', 'norm', 'vand', 'torev' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       true, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, offerReasonOnNormalRevert      :       true, orphanBacklinksOnSpeedyDelete  :       {orphan:true, exclude:['g6']} };

// User:Krimpet/CH2.js importScript('User:Krimpet/CH2.js');

importScript('Wikipedia:WikiProject User scripts/Scripts/qSig'); importScript('User:Paranomia/simplevote.js'); importScript('User:TheDJ/qui.js'); importScript ('User:Henrik/js/afc-helper.js');

//Random smiley script. By User:ais523, based on the suggestion by User:TomasBat.

$(function{

if(document.referrer.indexOf("RandomSmileyGenerator") != -1 &&

wgNamespaceNumber == 2 && wgTitle.indexOf("/") == -1 &&

wgPageName.indexOf(wgUserName) == -1)

{

//we're trying to give a random smiley

location.href=mw.config.get('wgServer')+mw.config.get('wgScriptPath')+"/index.php?title=User_talk:"+

encodeURIComponent(wgTitle)+"&action=edit&section=new&randomsmiley=1";

}

else if(document.referrer.indexOf("RandomSmileyGenerator") != -1 &&

wgNamespaceNumber == 2 && location.href.indexOf("RandomSmileyGenerator") == -1 &&

wgPageName.indexOf(wgUserName) == -1)

{

alert("This seems to be a user subpage, so there's no point in smiling at it. " +

"Why not go back and try again?");

}

else if(location.href.indexOf("&randomsmiley=1")!=-1)

{

document.editform.wpSummary.value="Random Smiley Award";

document.editform.wpTextbox1.value="{"+"{subst:User:Elipongo/SmileyAward2}} "+"";

document.editform['wpPreview'].click; //change to wpSave to save without a preview

}

});