Մասնակից:ԱշոտՏՆՂ/common.js
Ծանուցում. Հիշելուց հետո կատարված փոփոխությունները տեսնելու համար մաքրեք ձեր զննարկիչի հիշապահեստը. Mozilla / Firefox / Safari՝ Ctrl+Shift+R (Cmd+Shift+R Mac OS X-ում) Konqueror՝ F5 Opera՝ Tools→Preferences ընտրացանկից։ Internet Explorer՝ Ctrl+F5
window.hotcat_del_needs_diff = false;
window.catsuggest_check_langs = ['en'];
importScript("Մասնակից:ԱշոտՏՆՂ/ctrl-s-save.js");
importScript("Մասնակից:ԱշոտՏՆՂ/permaLink.js");
importScript("Մասնակից:ԱշոտՏՆՂ/randomlink.js");
importScript("Մասնակից:ԱշոտՏՆՂ/randomInCat.js");
importScript("Մասնակից:ԱշոտՏՆՂ/myToolbar.js");
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/VisualEditorEverywhere.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript');
document.addEventListener('keydown', e => {
if (e.ctrlKey && e.shiftKey && e.code === 'KeyC') {
e.preventDefault();
document.getElementById('t-page-catSuggest').click();
}
if (e.ctrlKey && e.shiftKey && e.code === 'KeyD') {
e.preventDefault();
window.open('https://ashottools.toolforge.org/random', '_self');
}
if (e.ctrlKey && e.shiftKey && e.code === 'KeyZ') {
e.preventDefault();
const potentials = document.getElementsByClassName('catSuggest-potential');
for(let i = 0; i < potentials.length; i++) {
potentials[i].click();
}
document.getElementById('catSuggest-save').click();
}
if (e.ctrlKey && e.shiftKey && e.code === 'KeyS') {
e.preventDefault();
document.getElementById('catSuggest-save').click();
}
if (e.ctrlKey && e.shiftKey && e.code === 'KeyA') {
e.preventDefault();
const potentials = document.getElementsByClassName('catSuggest-potential');
for(let i = 0; i < potentials.length; i++) {
potentials[i].click();
}
}
});