Console Tools

A library for shortened console.log, console.info, console.error

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.greasyfork.org/scripts/19894/248918/Console%20Tools.js

/*
 * name         Console Tools
 * namespace    pxgamer
 * version      0.2
 * description  A library for shortened console.log, console.info, console.error
 * author       pxgamer
 */

function cl(variable) {
    'use strict';

    console.log(variable);
}
function ci(variable) {
    'use strict';

    console.info(variable);
}
function ce(variable) {
    'use strict';

    console.error(variable);
}
function cw(variable) {
    'use strict';

    console.warn(variable);
}
function ct(variable) {
    'use strict';

    console.trace(variable);
}
function cc() {
    'use strict';

    console.clear();
}