<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Basic Iceweasel-UXP Extension Development]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=499&amp;type=atom" />
	<updated>2021-02-24T23:13:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=499</id>
		<entry>
			<title type="html"><![CDATA[Basic Iceweasel-UXP Extension Development]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=2763#p2763" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Mesh Malachi]]></name>
			</author>
			<updated>2021-02-24T23:13:39Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=2763#p2763</id>
		</entry>
</feed>
