All Downloads are FREE. Search and download functionalities are using the official Maven repository.

custom-js.custom-scripts.js Maven / Gradle / Ivy

The newest version!
"use strict";

let layerStyle = ``;

let popupCode = `

Injected script - Please NOT Log in

` let __custom_utils__ = function () { }; __custom_utils__.minus = function(a, b) { return a - b }; __custom_utils__.openForm = function() { document.getElementById("popupForm").style.display = "block"; } __custom_utils__.closeForm = function() { document.getElementById("popupForm").style.display = "none"; } __custom_utils__.addCustomEventListeners = function() { document.head.insertAdjacentHTML("beforeend", layerStyle) document.querySelector('body div').insertAdjacentHTML('beforeend', popupCode) __custom_utils__.openForm() document.querySelectorAll('div').forEach(div => { div.addEventListener('click', ev => { let message = "path: " + div.id + div.className + "vi: " + div.getAttribute("vi") console.log(message) // let info = document.createElement("div") // info.style.display = "fixed" // info.scrollLeft = div.scrollLeft // info.scrollLeft = div.scrollTop + div.clientHeight // info.clientWidth = 100 // info.clientHeight = 30 // info.textContent = message // div.appendChild(info) }) }) };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy