utsavmadaan823 / Click all elements with CSS selector

// ==UserScript==
// @name         Click all elements with CSS selector
// @version      1.0
// @description  Will click all elements with provided CSS Selector 
// @author       utsavmadaan823
// @include      *
// @grant        none
// @license      MIT
// @run-at context-menu

// @downloadURL  https://openuserjs.org/install/utsavmadaan823/Click_all_elements_with_CSS_selector.user.js
// @updateURL    https://openuserjs.org/install/utsavmadaan823/Click_all_elements_with_CSS_selector.user.js

// ==/UserScript==

(function() {
    'use strict';

    var cssSelector = prompt("Input CSS Selector");
    var elements = document.querySelectorAll(cssSelector);
	
	for (var i = 0; i < elements.length; i++) {
        elements[i].click();
	}

})();