DiffChecker Infinite Everything!

Sets localStorage counters to -Infinity for all features.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         DiffChecker Infinite Everything!
// @namespace    https://cqmbo1.github.io
// @version      1.0
// @description  Sets localStorage counters to -Infinity for all features.
// @author       Cqmbo__
// @match        https://www.diffchecker.com/*
// @icon         https://cqmbo1.github.io/assets/cqmbo__32x32.png
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const library = {
        merge: 10,
        realTime: 5,
        unified: 5,
        collapsed: 5,
        textDiffLevel: 10,
        excelDiffLevel: 10,
        ignoreCaseChanges: 5,
        ignoreWhiteSpace: 5,
        hideUnchangedRows: 5,
        hideUnchangedColumns: 5,
        ignoreStrings: 5,
        syntaxHighlight: 5,
        exportPdf: 5,
        exportXlsx: 5,
        exportRichTextPdf: 5,
        exportDocumentImageDiffPdf: 5,
        exportDocumentImageDiffImage: 5,
        exportImageDiffImage: 5,
        explain: 5,
        excelSortRows: 5,
        excelSortColumns: 5,
        excelNormalizeDatesUS: 5,
        excelNormalizeDatesEU: 5,
        textStats: 4
    };

    function makeKey(feature) {
        const now = new Date();
        const month = now.getMonth();
        const year = now.getFullYear();
        return `${feature}Uses-${month}-${year}`;
    }

    Object.keys(library).forEach(feature => {
        const key = makeKey(feature);
        localStorage.setItem(key, "-Infinity");
    });
})();