Skip to content

Instantly share code, notes, and snippets.

@mertcangokgoz
Created January 24, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mertcangokgoz/104583e996fb814cc9b3b7465a62c82e to your computer and use it in GitHub Desktop.
Save mertcangokgoz/104583e996fb814cc9b3b7465a62c82e to your computer and use it in GitHub Desktop.
function rm(a) {
var p = document.getElementById(a);
imgtag = "";
ifrtag = "";
ifrsrc = "";
ifrtb = -1;
img = p.getElementsByTagName("img");
ifr = p.getElementsByTagName("iframe");
for (var i = 0; i < ifr.length; i++) {
ifrsrc = ifr[i].src;
if (ifrsrc.indexOf("//www.youtube.com/embed/") != -1) {
ifrtb = i;
break
}
}
if (ifrtb != -1) ifrtag = '<div class="entry-video"><iframe width="840" height="472" src="' + ifrsrc + '?vq=medium&rel=0" frameborder="0" allowfullscreen></iframe></div>';
else if (img.length >= 1) imgtag = '<div class="entry-image"><a href="' + y + '"><img class="thumb" src="' + img[0].src + '" /></a></div>';
else imgtag = '<div class="entry-image no-image"><a href="' + y + '"><img class="thumb" src="https://lh4.googleusercontent.com/-G9M2DTCTUwM/Tlh-2pwtc5I/AAAAAAAABKM/kCJg-Kf3W2M/no_image_yet.jpg" /></a></div>';
p.innerHTML = ifrtag + imgtag + '<div class="entry-container"><div class="entry-content"><h1 class="entry-title"><a href="' + y + '">' + x + "</a></h1><p>" + stripTags(p.innerHTML, 60) + "...</p></div></div>"
}
window.onload = function() {
var e = document.getElementById("mycontent");
if (e == null) {
window.location.href = "http://www.soratemplates.com/"
}
e.setAttribute("href", "http://www.soratemplates.com/");
e.setAttribute("title", " Blogger Templates");
e.innerHTML = "Sora Templates"
}
< script type = 'text/javascript' > //<![CDATA[
function stripTags(s, n) {
return s.replace(/<.*?>/ig, "").split(/\s+/).slice(0, n - 1).join(" ")
}
var _0x3b26 = ["t E(a){f p=z.o(a);8=\"\";l=\"\";c=\"\";j=-1;5=p.q(\"5\");h=p.q(\"g\");K(f i=0;i<h.r;i++){c=h[i].7;b(c.J(\"//d.X.9/H/\")!=-1){j=i;I}}b(j!=-1)l=\'<2 3=\"4-10\"><g 11=\"14\" 16=\"1a\" 7=\"\'+c+\'?1b=1c&1e=0\" 1f=\"0\" F></g></2>\';n b(5.r>=1)8=\'<2 3=\"4-k\"><a 6=\"\'+y+\'\"><5 3=\"s\" 7=\"\'+5[0].7+\'\" /></a></2>\';n 8=\'<2 3=\"4-k L-k\"><a 6=\"\'+y+\'\"><5 3=\"s\" 7=\"M://N.O.9/-P/Q-R/S/T-U/V.W\" /></a></2>\';p.m=l+8+\'<2 3=\"4-Y\"><2 3=\"4-Z\"><u 3=\"4-v\"><a 6=\"\'+y+\'\">\'+x+\"</a></u><p>\"+12(p.m,13)+\"...</p></2></2>\"}w.15=t(){f e=z.o(\"17\");b(e==18){w.19.6=\"A://d.B.9/\"}e.C(\"6\",\"A://d.B.9/\");e.C(\"v\",\" 1d D\");e.m=\"G D\"}", "|", "split", "||div|class|entry|img|href|src|imgtag|com||if|ifrsrc|www||var|iframe|ifr||ifrtb|image|ifrtag|innerHTML|else|getElementById||getElementsByTagName|length|thumb|function|h1|title|window|||document|http|soratemplates|setAttribute|Templates|rm|allowfullscreen|Sora|embed|break|indexOf|for|no|https|lh4|googleusercontent|G9M2DTCTUwM|Tlh|2pwtc5I|AAAAAAAABKM|kCJg|Kf3W2M|no_image_yet|jpg|youtube|container|content|video|width|stripTags|60|840|onload|height|mycontent|null|location|472|vq|medium|Blogger|rel|frameborder", "", "fromCharCode", "replace", "\\w+", "\\b", "g"];
eval(function (_0xebecx1, _0xebecx2, _0xebecx3, _0xebecx4, _0xebecx5, _0xebecx6) {
_0xebecx5 = function (_0xebecx3) {
return (_0xebecx3 < _0xebecx2 ? _0x3b26[4] : _0xebecx5(parseInt(_0xebecx3 / _0xebecx2))) + ((_0xebecx3 = _0xebecx3 % _0xebecx2) > 35 ? String[_0x3b26[5]](_0xebecx3 + 29) : _0xebecx3.toString(36))
};
if (!_0x3b26[4][_0x3b26[6]](/^/, String)) {
while (_0xebecx3--) {
_0xebecx6[_0xebecx5(_0xebecx3)] = _0xebecx4[_0xebecx3] || _0xebecx5(_0xebecx3)
};
_0xebecx4 = [function (_0xebecx5) {
return _0xebecx6[_0xebecx5]
}];
_0xebecx5 = function () {
return _0x3b26[7]
};
_0xebecx3 = 1;
};
while (_0xebecx3--) {
if (_0xebecx4[_0xebecx3]) {
_0xebecx1 = _0xebecx1[_0x3b26[6]](new RegExp(_0x3b26[8] + _0xebecx5(_0xebecx3) + _0x3b26[8], _0x3b26[9]), _0xebecx4[_0xebecx3])
}
};
return _0xebecx1;
}(_0x3b26[0], 62, 78, _0x3b26[3][_0x3b26[2]](_0x3b26[1]), 0, {}));
function av(a) {
var b = a.entry.author[0];
c = b.name.$t;
d = b.gd$image.src.replace(/\/s[0-9]+(-*c*)\//, "/s55$1/");
document.write('<img alt="' + c + '" class="avatar-author" src="' + d + '" title="' + c + '"/>')
};
//]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment