test
by fasddfsa · 0 downloads
test
Runs on macOS.
Opens this slip inside Todebaran, where you can see what it does and install it into a folder you choose. No app yet? Download the file and drag it in later.
About this slip
test
What it does
Everything this slip touches when it runs, read straight from the file.
Runs code on your machine
JavaScriptShow codeHide code
(async () => {
// 1. Načti html2canvas
await new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js';
script.onload = resolve;
script.onerror = reject;
document.head.appendChild(script);
});
// 2. Najdi obrazek element
const target = document.querySelector('#film-page-wrapper .poster.film-poster>img');
if (!target) {
alert('Element .poster.film-poster>img nebyl nalezen.');
return;
}
// get src of the target img element
const src = target.getAttribute('src');
const img = document.createElement('img');
img.src = src;
img.style.width = '100%';
img.style.height = '100%';
img.style.display = 'block';
img.style.margin = '0 auto';
document.body.innerHTML = '';
document.body.style.margin = '0';
document.body.style.background = '#fff';
document.body.appendChild(img);
})();Goes out to the internet
Website
{{Movie.url}}
Text in {{ }} is filled in when it runs.
Uses AI
AI PromptShow promptHide prompt
vygeneruj nějakej náhodnej (i méně známé - opravdu čistě náhodnej. vygeneruj třeba 10 filmů a vyber ten až na devátém místě) japonskej film, který je poklidný slice of life typ filmu. napiš mi pár vět, proč se na ten film podívat, napiš jeho název a rok vydání a režiséra filmu. a ještě najdi a dej mi letterboxd url na profil toho filmu. v tom textu nezmiňuj nic o tom že jsi vybral náhodně devátou položku nebo tak něco.