Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
p4js_all_in_one.packages = {
    // This name will appear in the select box. You may want to use the abbreviation of LTA to indicate what it targets.
    "Example": {
        tracingedits: {
            duration: 3600, // Only deal with the edits made no earlier than this time (in seconds) ago. 'inf' for everything.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
        },
        rollback: {
            enabled: true, // If false, you will not rollback the villain in default settings. Note that you'll be unable to revdel the content without rollbacking.
            bot: false, // If true, your rollbacks will not appear in recent changes, if you have `markbotedits` right.
            showname: true, // If false, the villain's username won't appear in your rollback summary. Only use it when the username needs to be hidden.
        },
        block: {
            enabled: true, // If false, you will not block the villain in default settings.
            duration: "1 day", // You can set it to everything as you do in the block interface.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
            reason: false, // The reason you used to fill in the block interface.
            autoblock: true, // Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from. Not applicable to IP users.
            hardblock: false, // Prevent logged-in users from editing from this IP address. Not applicable to registered users.
            create: true, // Block account creation.
            talk: false, // Block talk page editing.
            mail: false, // Block email interface access. Not applicable to IP users.
            hidename: false, // If true, hide username from the public logs. Only applicable if you have `hideuser` right, e.g. be an oversighter.
        },
        pagedelete: {
            enabled: true, // If false, you will not delete pages created by the villain in default settings.
            reason: "Vandalism", // The reason you used to fill in the delete interface.
        },
        revisiondelete: {
            enabled: false, // If true, you will delete all the revisions the villain edited.
            content: true, // Whether to hide the revision content or not.
            summary: true, // Whether to hide the summary or not.
            username: false, // Whether to hide the username or not.
            reason: "Blatant offensive materials", // The reason you used to fill in the revision delete interface.
            oversight: false, // If true, suppress the edits instead of revision deletion. Only applicable if you have `suppressrevision` right, e.g. be an oversighter.
        },
    },
    // add another package... (this is a copy of above with comments omitted)
    "Default": {
        tracingedits: {
            duration: 3600,
            indefregistered: true,
        },
        rollback: {
            bot: false,
            showname: true,
        },
        block: {
            enabled: true,
            duration: "1 day",
            indefregistered: true,
            reason: false,
            autoblock: true,
            hardblock: false,
            create: true,
            talk: false,
            mail: false,
            hidename: false,
        },
        pagedelete: {
            enabled: true,
            reason: "Vandalism",
        },
        revisiondelete: {
            enabled: false,
            content: true,
            summary: true,
            username: false,
            reason: "Blatant offensive materials",
            oversight: false,
        },
    },
    // and so on.
};
p4js_all_in_one.default_package = "Default"; // The default package will get selected upon page is rendered.

if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
p4js_all_in_one.reasons = {
    block: ["Long-term abuse", "Vandalism-only account", "Spam-only account", "Open proxy", "Vandalism", "Spambot"],
    pagedelete: ["Vandalism", "Spam", "Out of project scope", "No useful content", "Nonsense", "Empty page", "Test page", "Author's request", "Copyviol"],
    revisiondelete: ["Blatant offensive materials", "Private information", "Copyviol"],
}
// You can select these suffixes to append to your block and (revision) delete rationales.
p4js_all_in_one.suffixes = ["", " ([[m:Special:MyLanguage/Global sysops|Global sysop]] action)", ""];