<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Migrated 12.11-&gt;12.17, now my js doesn&#x27;t work]]></title><description><![CDATA[<p dir="auto">Hi all!<br />
I only have a single script that highlights words on the page for me that match the list in the script. He's my script:</p>
<p dir="auto">// ==UserScript==<br />
// @name		Highlight Words<br />
// @author 		bpm<br />
// @version		1.1<br />
// @description		Highlights works from an array<br />
// @include		<a href="https://www.examplesite.com/*" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.examplesite.com/*</a><br />
// ==/UserScript==<br />
// 1.1 Updated by Frenzie, added easy to configure wordlist<br />
(function () {<br />
var wordlist=[<br />
/<em>@Wordlist (quote properly and use commas between values)@string@</em>/</p>
<p dir="auto">"word 1",<br />
"word 2",<br />
"word 3",<br />
"word 4",</p>
<p dir="auto">/<em>@</em>/<br />
];<br />
// other config<br />
var highlightBgColor = /<em>@Highlight background color@string@</em>/'grey'/<em>@</em>/;<br />
var highlightColor = /<em>@Highlight font color@string@</em>/'grey'/<em>@</em>/;</p>
<pre><code>function hilite(text){
	var count=0,dv;
	dv=document.defaultView;
	function searchWithinNode(node,te,len){
		var pos,skip,spannode,middlebit,endbit,middleclone;
		skip=0;
		if(node.nodeType==3){
			pos=node.data.toUpperCase().indexOf(te);
			if(pos&gt;=0){
				spannode=document.createElement('SPAN');
				spannode.style.backgroundColor=highlightBgColor;
				spannode.style.color=highlightColor;
				spannode.style.fontWeight='bold';
				middlebit=node.splitText(pos);
				endbit=middlebit.splitText(len);
				middleclone=middlebit.cloneNode(true);
				spannode.appendChild(middleclone);
				middlebit.parentNode.replaceChild(spannode,middlebit);
				++count;
				skip=1;
			}
		}
		else if(node.nodeType==1&amp;&amp; node.childNodes &amp;&amp; node.tagName.toUpperCase()!='SCRIPT' &amp;&amp; node.tagName.toUpperCase!='STYLE'){
			for (var child=0;child&lt;node.childNodes.length;++child){
				child=child+searchWithinNode(node.childNodes[child],te,len);
			}
		}
	return skip;
	}
	searchWithinNode(document.body,text.toUpperCase(),text.length);
}

document.addEventListener('DOMContentLoaded',function() {
	for (i=0; i&lt;wordlist.length; i++) {
		hilite(wordlist[i]);
	}
}, false);
</code></pre>
<p dir="auto">})();</p>
]]></description><link>https://forums.opera.com/topic/3645/migrated-12-11-12-17-now-my-js-doesn-t-work</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 22:58:56 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/3645.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Jun 2014 01:05:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Migrated 12.11-&gt;12.17, now my js doesn&#x27;t work on Fri, 27 Jun 2014 12:15:39 GMT]]></title><description><![CDATA[<p dir="auto">Fine.</p>
<blockquote>
<p dir="auto">Much love angiesdom <img src="https://forums.opera.com/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=qqje97jok90" class="not-responsive emoji emoji-emoji-one emoji--winking_face" title=";)" alt="😉" /></p>
</blockquote>
<p dir="auto">Thanks for the flowers <img src="https://forums.opera.com/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=qqje97jok90" class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
]]></description><link>https://forums.opera.com/post/43663</link><guid isPermaLink="true">https://forums.opera.com/post/43663</guid><dc:creator><![CDATA[Deleted User]]></dc:creator><pubDate>Fri, 27 Jun 2014 12:15:39 GMT</pubDate></item><item><title><![CDATA[Reply to Migrated 12.11-&gt;12.17, now my js doesn&#x27;t work on Fri, 27 Jun 2014 11:52:37 GMT]]></title><description><![CDATA[<p dir="auto">Found it! (thanks to your bullet point "set path to all your UserJS files with opera:config#UserPrefs|UserJavaScriptFile")</p>
<p dir="auto">Noticed 1 small thing below the path to user scripts, remembered that my links were in HTTPS so I enabled a checbox below and wuala! <img src="https://forums.opera.com/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=qqje97jok90" class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes" title=":D" alt="😃" /></p>
<p dir="auto"><a href="http://i.imgur.com/0Tm5luD.jpg" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.imgur.com/0Tm5luD.jpg</a></p>
<p dir="auto">Much love angiesdom <img src="https://forums.opera.com/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=qqje97jok90" class="not-responsive emoji emoji-emoji-one emoji--winking_face" title=";)" alt="😉" /></p>
]]></description><link>https://forums.opera.com/post/43661</link><guid isPermaLink="true">https://forums.opera.com/post/43661</guid><dc:creator><![CDATA[ozpa]]></dc:creator><pubDate>Fri, 27 Jun 2014 11:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to Migrated 12.11-&gt;12.17, now my js doesn&#x27;t work on Fri, 27 Jun 2014 10:01:21 GMT]]></title><description><![CDATA[<p dir="auto">My Code on <a href="http://pastebin.com/UXHRg4yG" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.com/UXHRg4yG</a> works fine for me.</p>
<ul>
<li>check antivirus sioftware interfering with UserJS</li>
<li>check other UserJS scripts interfering</li>
<li>check Extensions blocking your UserJS</li>
<li>check your userJS file name, name the file <strong>hilite.js</strong>, hilite.user.js <strong>does not</strong> load the file</li>
<li>set path to all your UserJS files with <code>opera:config#UserPrefs|UserJavaScriptFile</code></li>
<li>activate <code>opera:config#UserPrefs|AlwaysLoadUserJavaScript</code></li>
<li>activate <code>opera:config#UserPrefs|UserJavaScript</code></li>
<li>activate UserJS on https sites with <code>opera:config#UserPrefs|UserJavaScriptonHTTPS</code></li>
</ul>
]]></description><link>https://forums.opera.com/post/43642</link><guid isPermaLink="true">https://forums.opera.com/post/43642</guid><dc:creator><![CDATA[Deleted User]]></dc:creator><pubDate>Fri, 27 Jun 2014 10:01:21 GMT</pubDate></item><item><title><![CDATA[Reply to Migrated 12.11-&gt;12.17, now my js doesn&#x27;t work on Fri, 27 Jun 2014 01:08:54 GMT]]></title><description><![CDATA[<p dir="auto">Sorry I can't edit my 1st post, here's a tidier version on pastebin:</p>
<p dir="auto"><a href="http://pastebin.com/e8uRCdQ4" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.com/e8uRCdQ4</a></p>
]]></description><link>https://forums.opera.com/post/43608</link><guid isPermaLink="true">https://forums.opera.com/post/43608</guid><dc:creator><![CDATA[ozpa]]></dc:creator><pubDate>Fri, 27 Jun 2014 01:08:54 GMT</pubDate></item></channel></rss>