🔥 A hot reloader for the Browser.
// ==UserScript==
// @name Hot
// @namespace https://github.com/sachinsenal0x64/hot.nvim
// @version 1.0
// @description 🔥 A hot reloader for the Browser.
// @author sachinsenal0x64
// @match *://*.localhost:8086/*
// @match *://*.atom.com/*
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Create a meta tag for auto-refresh
var metaTag = document.createElement('meta');
metaTag.setAttribute('http-equiv', 'refresh');
metaTag.setAttribute('content', '5'); // Refresh every 5 seconds
// Find the <head> element and append the meta tag to it
var head = document.querySelector('head');
head.appendChild(metaTag);
})();