Content deleted Content added
Polygnotus (talk | contribs) ←Created page with '(function() { 'use strict'; // Add styles GM_addStyle(` #word-fetcher-container { position: fixed; top: 10px; right: 10px; background-color: white; padding: 10px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 9999; } #word-display { font-size: 1.2rem; margin-bottom: 0.5rem;...' |
Polygnotus (talk | contribs) No edit summary |
||
Line 2:
'use strict';
function addStyles() {
const style = document.createElement('style');
`;
document.head.appendChild(style);
}
function createUI() {
const container = document.createElement('div');
container.id = 'word-fetcher-container';
container.innerHTML = `
<div id="word-display">Click 'Next Word' to start</div>
<button id="next-button">Next Word</button>
<div id="debug-info"></div>
`;
document.body.appendChild(container);
}
class
constructor() {
this.words = [];
Line 95 ⟶ 99:
}
addStyles();
createUI();
new WordFetcher();
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();
|