<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — Basic Iceweasel-UXP Extension Development]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=499</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=499&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Basic Iceweasel-UXP Extension Development.]]></description>
		<lastBuildDate>Wed, 24 Feb 2021 23:13:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Basic Iceweasel-UXP Extension Development]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=2763#p2763</link>
			<description><![CDATA[<p>I have a simple extension that blocks text on the pages of one website.</p><p>How do I get the extension to execute my javascript whenever I&#039;m on the website? Currently, it does not execute at all. </p><p>I&#039;ve tried checking for the name of the website with </p><p>if ( window.location.hostname == &quot;website.com&quot;)</p><p>I&#039;ve also tried adding an event listener:</p><p>document.addEventListener(&quot;DOMContentLoaded&quot;, function(){ myfunction()});</p><p>But nothing in the script ever seems to execute. However, the code from my extension works if I run it in the browser console while I&#039;m on the website.</p>]]></description>
			<author><![CDATA[null@example.com (Mesh Malachi)]]></author>
			<pubDate>Wed, 24 Feb 2021 23:13:39 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=2763#p2763</guid>
		</item>
	</channel>
</rss>
