User:C.Syde65/common.js
Important note on account security
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with
importScript
or iusc
, take note that this causes you to dynamically load a remote script, which could be changed by others. The code will be executed when you preview this page.Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Edge: Press Ctrl-Shift-Del, select Cached data and files, and click Clear
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// 08:44, May 10, 2017 (UTC)
// <source lang="JavaScript">
importArticles({
type: 'script',
articles: [
'u:dev:SeeMoreActivityButton/code.js',
]
});
importScriptPage('MediaWiki:ClassicModIcons.js', 'dev');
// ClassicModIcons script
// usergroup class addition
$(function() {
function addClass(m) {
$(m.view.el).addClass(m.attributes.groups.join(' '));
}
mainRoom.model.users.models.forEach(addClass);
mainRoom.bind('afterJoin', addClass);
$('#ChatHeader').children('.User').addClass($('#user-' + wgUserName.replace(' ', '_').replace(/["']/g, '')).attr('class'));
});
// classic icon CSS import
importArticle({
type: 'style',
article: 'u:dev:MediaWiki:ClassicModIcons.css'
});