User:IJohnKennady/common.js
Appearance
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", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:IJohnKennady/common.css. |
/**
* Utility gadget for CodeReview extension.
* Adds button to interface to export a list of revision numbers,
* based on the checkbox currently checked.
* ! Beware: Code is hacky, quick and unstable but when it works,
* ! it's a nice time-safer to do shell commands such as "svn merge -c ... "
*
* @author Roan Kattouw [[User:Catrope]], 2011
* @author Timo Tijhof [[User:Krinkle]], 2011
*/
/* console version */
window.checkedRevs = function( prefix, separator ) {
if ( prefix === undefined ) {
prefix = 'r';
}
if ( separator === undefined ) {
separator = ', ';
}
var s = [];
jQuery( '.TablePager_col_selectforchange input:checked' ).each( function() {
s.push( prefix + jQuery( this ).val() );
} );
return s.reverse().join( separator );
}
importScript('User:Σ/Testing_facility/Archiver.js'); // Backlink: [[User:Σ/Testing_facility/Archiver.js]]
importScript('User:BrandonXLF/EasySummary.js'); // Backlink: [[User:BrandonXLF/EasySummary.js]]
importScript('User:Joeytje50/JWB.js/load.js'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
importScript('User:Schminnte/PageCuration.js'); // Backlink: [[User:Schminnte/PageCuration.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]