Enkel widget som viser de siste nye Pressfire artiklene.
Les gjennom koden for å sjekke at jeg ikke finner på noe fanteri )
/* ==UserStyle== | |
@name grouvee.com - 18/10/2021, 00:00:25 | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description A new userstyle | |
@author Me | |
==/UserStyle== */ | |
@-moz-document domain("grouvee.com") { | |
:root { | |
--background-color: #0c0c0c; |
const html = | |
"<html> \ | |
<head> \ | |
<style> \ | |
:root { \ | |
--main-color: #B368F6; \ | |
} \ | |
body { \ | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; \ | |
color: white; \ |
javascript:(function(){let textInput=document.querySelectorAll('textarea');const inputLength=textInput.length;function replaceEmoji(inValue){let result='';for(let i=0;i<inValue.value.length;i+=1){var code=inValue.value.codePointAt(i);if(code>0xFFFF){result+=['&#',code,';'].join('');i+=1}else{result+=String.fromCodePoint(code)}}return result}for(let i=0;i<inputLength;i+=1){const input=textInput[i];if(input.value){textInput[i].value=replaceEmoji(input);textInput[i].dispatchEvent(new Event('input'))}}})(); |