Skip to content

Instantly share code, notes, and snippets.

View gechternachtv's full-sized avatar
🏠
Working from home

Gabriel Echternacht gechternachtv

🏠
Working from home
View GitHub Profile
@gechternachtv
gechternachtv / share.js
Created August 18, 2021 17:38
share btn
const style = document.createElement(`style`)
style.innerHTML = `
.shareBox {
/* max-width: 282px; */
width: 282px;
right: 0px;
bottom: -90px;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<title>Svg Color something 1 </title>
<style>html, body {
position: relative;
window.addEventListener("load",()=>{
const tabela = document.querySelector(".box-tabela-nutricional")
if (tabela){
tabela.querySelector("h2").remove()
tabela.querySelectorAll("*").forEach(item => {
item.removeAttribute("style")
item.removeAttribute("width")
})
let tabelaInner = tabela.innerHTML;
class SubTemplate extends HTMLElement {
constructor(location = null) {
super();
this.link = location ? location : this.getAttribute("link")
fetch(this.link).then(res => res)
.then(response => response.text())
.then(data => {
@-moz-document url("about:newtab"), url("about:home") {
/* You can change any setting */
html {
height: 100%;
/* For disabling scrollbar */
overflow: hidden;
background:rgb(66, 59, 76);
;
/*background-image: url(images/firefox.jpg);*/
background-position: center;
(()=>{
const newStyle = document.createElement(`style`);
newStyle.innerHTML = `
/* #image a {pointer-events: none;} */
.image-zoom{
opacity:0;
transition:all 0s;
visibility:hidden;
}
function xdtosvg(prefix) {
const style = document.querySelector('style');
document.querySelectorAll('*').forEach(item => {
const oldClass = item.getAttribute('class');
if (oldClass) {
console.log(`%c ${item.getAttribute('class')} - _${prefix}-${oldClass}`, 'color:turquoise;font-size:20px');
item.setAttribute('class', `_${prefix}-${oldClass}`);
style.innerHTML = style.innerHTML.replaceAll(`.${oldClass}`, `._${prefix}-${oldClass}`)
console.log(style.innerHTML.replaceAll(`.${oldClass}`, `._${prefix}-${oldClass}`))
@gechternachtv
gechternachtv / userChrome.css
Last active February 12, 2023 03:15
my firefox userChrome file
/*var(--identity-tab-color)*/
.identity-color-blue {
--identity-tab-color: #4298d5;
--identity-icon-color: #4298d5;
}
.identity-color-turquoise {
const newsletterEL = document.querySelector('.newsletter .container-input')
newsletterEL.addEventListener('submit', e=> {
e.preventDefault();
request('PATCH', '/api/dataentities/NL/documents/', {
email:`${newsletterEL.querySelector('#email').value}`
})
.then(
resCL => {