Untitled
unknown
plain_text
3 years ago
1.2 kB
6
Indexable
(function () {
try {
/* main variables */
var debug = 0;
var variation_name = "";
/* all Pure helper functions */
function waitForElement(selector, trigger, delayInterval, delayTimeout) {
var interval = setInterval(function () {
if (
document &&
document.querySelector(selector) &&
document.querySelectorAll(selector).length > 0
) {
clearInterval(interval);
trigger();
}
}, delayInterval);
setTimeout(function () {
clearInterval(interval);
}, delayTimeout);
}
/* Variation functions */
function init(){
}
/* Initialize variation */
waitForElement(".header .bottom ", init, 50, 15000);
} catch (e) {
if (debug) console.log(e, "error in Test" + variation_name);
}
})();
.header .bottom a[title] {
background: #3671B0;
color: #fff;
}
.header .bottom a[title]:hover {
background: #18324E;
color: #fff;
}
{
"files": [
"./variationB/variation.css",
"./variationB/variation.js"
],
"urls": ["https://octopart.com/47948-0001-molex-20326346?r=sp"],
"inject": ""
}
Editor is loading...