{"id":50,"date":"2009-01-19T12:59:02","date_gmt":"2009-01-19T17:59:02","guid":{"rendered":"http:\/\/fw.hardijzer.nl\/?p=50"},"modified":"2009-01-19T12:59:02","modified_gmt":"2009-01-19T17:59:02","slug":"compatibility-out-of-the-box","status":"publish","type":"post","link":"https:\/\/fw.hardijzer.nl\/?p=50","title":{"rendered":"Compatibility out of the box"},"content":{"rendered":"<p>My current boss wanted to know if the LiveScratcher Script-to-DUI interface would work with Windows Live Messenger 8 too. I&#8217;d kept in mind that I wanted it compatible with WLM8, but hadn&#8217;t tested it yet. To my suprise, there were only two tiny (non-fatal) errors, and I could get the advertising removal script working with just one extra line.<\/p>\n<p>Behold, the Windows Live Messenger 8 *and* 9 compatible advertisement patch:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\/\/Compact method\r\nfunction CL_onCreatedElement(resid, root) {\r\n\tif (resid==&quot;mainContentResID&quot;) {\r\n\t\tvar ads=root.FindDescendent(&quot;TabsAndAds&quot;) || root.FindDescendent(&quot;AdBanner&quot;);\r\n\t\tads.LayoutPos=-3;\r\n\t}\r\n}\r\n\r\n\/\/Verbose method\r\nfunction Convo_onCreatedElement(resid, root) {\r\n\tif (resid==&quot;convframeresid&quot;) {\r\n\t\tvar adbannergutter=root.FindDescendent(&quot;adbannergutter&quot;);\r\n\t\tif (adbannergutter)\r\n\t\t\tadbannergutter.SetValue(&quot;LayoutPos&quot;,Value.CreateInt(-3));\r\n\t}\r\n}\r\n\r\n\/\/Patches contained in this file\r\nPatches=&#x5B;\r\n\t{\r\n\t\tid: &quot;ContactListAdvert&quot;,\r\n\t\tname: &quot;Remove Contact-list Advertisement&quot;,\r\n\t\tversion: &quot;1.0&quot;,\r\n\t\tauthor: &quot;A. Nonymous&quot;,\r\n\t\twebsite: &quot;http:\/\/www.google.com\/&quot;,\r\n\t\tonCreatedElement: CL_onCreatedElement\r\n\t},\r\n\t{\r\n\t\tid: &quot;ConvoTextAdvert&quot;,\r\n\t\tname: &quot;Remove Conversation Text Advertising&quot;,\r\n\t\tversion: &quot;1.0&quot;,\r\n\t\tauthor: &quot;A. Nonymous&quot;,\r\n\t\twebsite: &quot;http:\/\/www.google.com\/&quot;,\r\n\t\tonCreatedElement: Convo_onCreatedElement\r\n\t}\r\n];\r\n\/\/Register patches\r\nfor (var i in Patches) {\r\n\tRegisterPatch(Patches&#x5B;i].id,Patches&#x5B;i]);\r\n}\r\n<\/pre>\n<p>The whole thing started off as an extension to a DUI compatibility layer I wrote for Iminent, but with every hour I stick in I&#8217;m falling in love with it more \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My current boss wanted to know if the LiveScratcher Script-to-DUI interface would work with Windows Live Messenger 8 too. I&#8217;d kept in mind that I wanted it compatible with WLM8, but hadn&#8217;t tested it yet. To my suprise, there were only two tiny (non-fatal) errors, and I could get the advertising removal script working with &hellip; <a href=\"https:\/\/fw.hardijzer.nl\/?p=50\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Compatibility out of the box<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,23],"tags":[34,33,72,73],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-messenger","category-stuffplug","tag-directui","tag-livescratcher","tag-messenger","tag-stuffplug"],"_links":{"self":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":2,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fw.hardijzer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}