This is a KIND 5394 event created on 2024-02-18 17:25:19 (9 months ago). Debug this event chain.
{ "id": "f9e315003dddb4a8da3e79cfcf52f64804860ab40da8a9e1c5dc09df809bc00d", "pubkey": "9d1ac832fe010793dd08f91c372c0d78fa7d806a1048b55aa7bb231f84952ea8", "created_at": 1708277119, "kind": "5394", "tags": [], "content": "var simpleRSSPlugin = (function() { \t// get all the feed containers \tvar feedsNodes = document.querySelectorAll('[data-rss-feed]'); \t// Convert to array \tvar feeds = [].slice.call(feedsNodes); \tfor (var i = 0; i < feeds.length; i++) { \t\tvar container = feedsNodes[i]; \t\t \t\t// get feed URL \t\tvar url = container.getAttribute('data-rss-feed'); \t\t// get whether to link titles \t\tvar addLink = container.getAttribute('data-rss-link-titles') || 'true'; \t\t \t\t// get title wrapper element \t\tvar titleWrapper = container.getAttribute('data-rss-title-wrapper') || 'h2'; \t\t// Max outputs \t\tvar max = container.getAttribute('data-rss-max') || 10; \t\t// Get data - append as script with callback to avoid CORS \t\tvar script = document.createElement('script'); \t\tscript.src = document.location.protocol + '//api.rss2json.com/v1/api.json?callback=simpleRSSPlugin.handleJSON&rss_url=' + encodeURIComponent(url); \t\tdocument.querySelector('head').appendChild(script); \t\t \t\t// Remove script \t\tscript.parentNode.removeChild(script); \t} \t// Callback function \tvar loops = 0; \tfunction handleJSON(data) { \t\tif (data.feed && data.items) { \t\t\t \t\t\tvar docFrag = document.createDocumentFragment(); \t\t\tfor (var i = 0; i < data.items.length; i++) { \t\t\t\tvar e = data.items[i]; \t\t\t\tvar tempNode = document.createElement('div'); \t\t\t\tvar template = '<' + titleWrapper + '>' + e.title + '' + titleWrapper + '>' + e.content; \t\t\t\tif (addLink === 'false') { \t\t\t\t\ttemplate = '<' + titleWrapper + '>' + e.title + '' + titleWrapper + '>' + e.content; \t\t\t\t} \t\t\t\tif (i < max) { \t\t\t\t\t \t\t\t\t\ttempNode.innerHTML = template; \t\t\t\t\t \t\t\t\t\tdocFrag.appendChild(tempNode); \t\t\t\t} \t\t\t} \t\t\tcontainer = feedsNodes[loops]; \t\t\tcontainer.appendChild(docFrag); \t\t\tloops++; \t\t} \t} \t// Return function for use in global scope \treturn { \t\thandleJSON:handleJSON \t} })(); ", "sig": "cd9ef97d424cb9215ae0061bbd9a5f402e209c11e9aa2ccb6603dd2b8bd9a22858f8c67ce6b6375e2dc3b74e91ec51eb3d067ca83bc0b11f73e005cb5670cbc8" }