CSSreloader

That allows you to reload all the CSS files of any site or local HTML file without you have to reload the page itself. Just press F8.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         CSSreloader
// @namespace    DuKaT
// @version      0.8
// @description  That allows you to reload all the CSS files of any site or local HTML file without you have to reload the page itself. Just press F8.
// @author       DuKaT
// @match        file:///*
// @match        http://*/*
// @match        https://*/*
// @grant        none
// ==/UserScript==

(function () {
	'use strict';

	const eventCode = 'F8';
	// @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
	const keyCode = 119; // F8

	function reload() {
		const hrefSuffix = 'cssreloader=' + Date.now();

		document.querySelectorAll('link[rel="stylesheet"][href]').forEach((linkEl) => {
			const href = linkEl.href.replace(/[?&]cssreloader=\d+$/, '');
			linkEl.href = href + (href.indexOf('?') === -1 ? '?' : '&') + hrefSuffix;
		});
    }

	document.addEventListener('keyup', (evt) => {
		if (evt.code !== undefined) {
			if (evt.code === eventCode) {
				reload();
			}
		} else if (evt.keyCode === keyCode) {
			reload();
        }
	});

})();