Skip to content

Instantly share code, notes, and snippets.

@maidis
Last active August 29, 2015 14:22
Show Gist options
  • Save maidis/742f014c1a172c24152b to your computer and use it in GitHub Desktop.
Save maidis/742f014c1a172c24152b to your computer and use it in GitHub Desktop.
Happy Kitty Discussion Groups
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
title="Happy Kitty Discussion Groups"
description="A gadget that brings Happy Kitty Discussion Groups on Google Code">
<Require feature="setprefs"/>
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="projectName" default_value=""/>
<UserPref name="url" display_name="Discussion Group URL" datatype="string"/>
<Content type="html"><![CDATA[
<!-- Google Groups Element -->
<iframe id="groups_embed" src="javascript:void(0);" width="800" height="600" scrolling="no" frameborder="0"></iframe>
<script type="text/javascript">
parentUrl = encodeURIComponent(window.location.href);
parentUrl = parentUrl.match(/https?:\/\/.+/) ? parentUrl : null;
document.getElementById("groups_embed").src = "https://groups.google.com/forum/embed/?place=forum%2Fhappy-kitty&showsearch=true&theme=default" + (parentUrl ? ("&parenturl=" + parentUrl) : "");
</script>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment