User:Nihiltres/nothingthree-config.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at User:Nihiltres/nothingthree-config. |
$(function() {
if (!nothingthree.util.isMobile() ) { //in the usual case…
//First, fix some links, using linkFix
nothingthree.util.linkFix('pt-preferences', 'Preferences');
nothingthree.util.linkFix('pt-watchlist', 'Watchlist');
nothingthree.util.linkFix('pt-mytalk', 'Talk');
nothingthree.util.linkFix('pt-mycontris', 'Contributions');
//Second, add the tabs as desired
nothingthree.tabAdd.log();
nothingthree.tabAdd.sandbox();
nothingthree.tabAdd.purge();
//Some miscellaneous additions…
nothingthree.sidebar.toggleTab();
nothingthree.sidebar.remember();
nothingthree.tops.toggleTab();
nothingthree.tabMove.watch();
}
else { //if it's a mobile browser as defined by nothingthree.util.isMobile() …
//Mobile-specific CSS! (Mobile-specific JS is handled here.)
//importStylesheet('User:' + wgUserName + '/vector-ipod.css');
// not using mobile CSS (yet) on Commons because I haven't imported it (yet)
nothingthree.util.linkFix('pt-preferences', 'Preferences');
nothingthree.util.linkFix('pt-watchlist', 'Watchlist');
nothingthree.util.linkFix('pt-mytalk', 'Talk');
nothingthree.util.linkFix('pt-mycontris', 'Contributions');
//Second, add the tabs as desired
nothingthree.tabAdd.log();
nothingthree.tabAdd.sandbox();
nothingthree.tabAdd.purge();
//Some miscellaneous additions…
nothingthree.sidebar.collapse();
nothingthree.sidebar.toggleTab();
}
});