Created
April 29, 2020 21:50
-
-
Save setapolo/50f5a867f981e60be1b87d615bee3bc7 to your computer and use it in GitHub Desktop.
CaiuSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<script> | |
readData=function(){ | |
return function(a){ | |
var url = a['url']; | |
var tag = a['querySelector']; | |
fetch(url).then(function(response) { | |
return response.text(); | |
}).then(function(text) { | |
// text = text.replace(/\n/ig,"<BR>"); | |
text.split(/\n/).map(function(c){ | |
ferrorod("A")(document.body)({HREF:c,innerHTML:c}); | |
} | |
); | |
}); | |
} | |
} | |
</script> | |
</html> | |
<script type="text/javascript"> | |
//CCas Closure Cascading v.0.03 2020/3/28 moka | |
(function (g,flg){ | |
g.ferrorod=function(s){ | |
return function(p){ | |
return function(a){ | |
var e = document.createElement(s); | |
Object.keys(a).map(function(c,i){ | |
e.setAttribute(c,a[c]); | |
}); | |
e = Object.assign(e,a); | |
p.appendChild(e); | |
return e | |
} | |
} | |
}; | |
return function(d,flg){ | |
var a={}; | |
var aa=[null]; | |
var aaa=[]; | |
var lv=[document.body]; | |
var k=null; | |
var parent=document.body; | |
var f= function(c){ | |
var _f = (typeof c=="function")?c:null; | |
(typeof c=="object")?(function(){ | |
_f=(c.source)?ferrorod(c.source):_f; | |
}()):0; | |
(k==null)?(_f!=null)?function(){ | |
aaa.push(a); | |
aa.push(_f); | |
a={}; | |
}():0:0; | |
(c==null)?(function(){ | |
(a!=null)?(aaa.push(a)):0; | |
aa.map(function(cc,i){ | |
parent = (cc!=null)?cc(lv[lv.length -1])(aaa[i]):document.body; | |
(parent != document.body)?lv.push(parent):0; | |
}); | |
lv.pop(); | |
aaa=[]; | |
aa=[null]; | |
})():0; | |
var v =(k != null)?c:null; | |
k=(typeof c=="string")?(k==null)?c:k:k; | |
((k!=null)&&(v!=null))?a[k]=v:0; | |
k=((k!=null)&&(v!=null))?null:k; | |
return f; | |
} | |
return f; | |
}; | |
})(window) | |
(document) | |
(/link/) | |
("href")("https://cdnjs.cloudflare.com/ajax/libs/caiuss/1.4.13/caiuss.min.css") | |
("rel")("stylesheet")() | |
(/H2/) | |
("innerHTML")("Hello Sir, ") | |
(/span/) | |
("innerHTML")("hover over me.") | |
("class")("hint--bottom") | |
("aria-label")("Thank you!") | |
() | |
(readData) | |
// ("url")("https://www.w3.org/TR/PNG/") | |
("url")("https://gist.githubusercontent.com/apipemc/6047552/raw/5cf8793e00d569de4f1ee8c125648ee5e0b6e2de/links.txt") | |
("querySelector")("img") | |
() | |
; | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment