Skip to content

Instantly share code, notes, and snippets.

@Windows81
Last active November 3, 2019 21:34
Show Gist options
  • Save Windows81/50195594e5d13130751572fe11313f17 to your computer and use it in GitHub Desktop.
Save Windows81/50195594e5d13130751572fe11313f17 to your computer and use it in GitHub Desktop.
Import this file into Requestly to get the old Vyond themes back.
[
{
"creationDate": 666,
"description": "",
"groupId": "",
"id": "VU_Redirects",
"isSample": false,
"name": "VyondUtil",
"objectType": "rule",
"pairs": [
{
"from": "charactercreator/family?",
"source": {
"key": "Url",
"operator": "Contains",
"value": ""
},
"status": "Active",
"to": "charactercreator/business/new_char?type=boy&theme=family&char=adam"
},
{
"from": "https://ga.vyond.com/goapi/getThemeList/",
"source": {
"key": "Url",
"operator": "Contains",
"value": ""
},
"status": "Active",
"to": "http://le-blog.000webhostapp.com/themelist.zip"
},
{
"from": "https://d3v4eglovri8yt.cloudfront.net/store/3a981f5cb2739137/custom/custom.zip",
"source": {
"key": "Url",
"operator": "Contains",
"value": ""
},
"status": "Active",
"to": "http://gotest334.esy.es/goanimate/McwCustom.zip"
}
],
"ruleType": "Replace",
"status": "Active",
"version": 2
},
{
"creationDate": 666,
"description": "",
"groupId": "",
"id": "VU_Scripts_1",
"isSample": false,
"name": "VyondUtil",
"objectType": "rule",
"pairs": [
{
"libraries": [],
"scripts": [
{
"codeType": "js",
"loadTime": "beforePageLoad",
"type": "code",
"value": "var changes={\n\tfree_trial:0,\n\tut:60,\n\tlid:\"666\",\n}\n\nfunction fix(n){\n\tvar s=n.innerHTML\n\tvar m=/studio_data.flashvars =([^;]+);/g.exec(s)\n\tvar e=m.index+m[0].length-1\n\tvar j=JSON.parse(m[1])\n\tvar b=e-m[1].length+1\n\tfor(var k in changes)j[k]=changes[k]\n\tn.innerHTML=s.substr(0,b)+JSON.stringify(j)+s.substr(e)\n}"
},
{
"codeType": "js",
"loadTime": "beforePageLoad",
"type": "code",
"value": "var params=new URLSearchParams(window.location.search),char=params.get('char'),theme=params.get('theme');if(char)$('#char_creator_client').flash({id:\"char_creator\",swf:\"https://d3v4eglovri8yt.cloudfront.net/animation/414827163ad4eb60/cc.swf\",height:600,width:960,align:\"middle\",allowScriptAccess:\"always\",allowFullScreen:\"true\",wmode:\"transparent\",hasVersion:\"10.3\",flashvars:{\"apiserver\":\"https:\\/\\/ga.vyond.com\\/\",\"m_mode\":\"school\",\"bs\":char,\"isLogin\":\"Y\",\"isEmbed\":\"0\",\"ctc\":\"go\",\"tlang\":\"en_US\",\"storePath\":\"https:\\/\\/d3v4eglovri8yt.cloudfront.net\\/store\\/3a981f5cb2739137\\/<store>\",\"clientThemePath\":\"https:\\/\\/d3v4eglovri8yt.cloudfront.net\\/static\\/ad44370a650793d9\\/<client_theme>\",\"appCode\":\"go\",\"page\":\"\",\"siteId\":\"go\",\"userId\":\"00EDZP3Cu0aw\",\"themeId\":theme?theme:'business',\"ut\":30}});"
},
{
"codeType": "js",
"loadTime": "beforePageLoad",
"type": "code",
"value": "var done=false,o=new MutationObserver((m)=>{m.forEach((m)=>{m.addedNodes.forEach((n)=>{if(!done&&n.tagName=='SCRIPT'&&n.innerHTML.includes('interactive')){fix(n);done=true}else if(n.id=='Player')n.width=1024,n.height=576})})});o.observe(document,{subtree:true,childList:true,attributes:true})\nconsole.log('Le.')"
},
{
"codeType": "js",
"loadTime": "afterPageLoad",
"type": "code",
"value": "function initPreviewPlayer(e,r,i,l){movieDataXmlStr=e,previewStartFrame=r,filmXmlStr=e.split(\"<filmxml>\")[1].split(\"</filmxml>\")[0],r=void 0===r?1:Math.max(1,parseInt(r)),i?$(\"#preview-alert-block\").show():$(\"#preview-alert-block\").hide(),previewSceen(),$(\"#previewPlayerContainer\").show(),loadLegacyPreview(),!checkPreviewServer()&&previewPlayerRetryCount>0&&(previewPlayer.connect(),previewPlayerRetryCount--)}"
}
],
"source": {
"key": "Url",
"operator": "Contains",
"value": "/videomaker/full"
}
}
],
"ruleType": "Script",
"status": "Active"
},
{
"creationDate": 666,
"description": "",
"groupId": "",
"id": "VU_Scripts_2",
"isSample": false,
"name": "VyondUtil",
"objectType": "rule",
"pairs": [
{
"libraries": [],
"scripts": [
{
"codeType": "js",
"loadTime": "afterPageLoad",
"type": "code",
"value": "var params=new URLSearchParams(window.location.search),char=params.get('char'),theme=params.get('theme');if(char)$('#char_creator_client').flash({id:\"char_creator\",swf:\"https://d3v4eglovri8yt.cloudfront.net/animation/414827163ad4eb60/cc.swf\",height:600,width:960,align:\"middle\",allowScriptAccess:\"always\",allowFullScreen:\"true\",wmode:\"transparent\",hasVersion:\"10.3\",flashvars:{\"apiserver\":\"https:\\/\\/ga.vyond.com\\/\",\"m_mode\":\"school\",\"bs\":char,\"isLogin\":\"Y\",\"isEmbed\":\"0\",\"ctc\":\"go\",\"tlang\":\"en_US\",\"storePath\":\"https:\\/\\/d3v4eglovri8yt.cloudfront.net\\/store\\/3a981f5cb2739137\\/<store>\",\"clientThemePath\":\"https:\\/\\/d3v4eglovri8yt.cloudfront.net\\/static\\/ad44370a650793d9\\/<client_theme>\",\"appCode\":\"go\",\"page\":\"\",\"siteId\":\"go\",\"userId\":\"00EDZP3Cu0aw\",\"themeId\":theme?theme:'business',\"ut\":30}});"
}
],
"source": {
"key": "Url",
"operator": "Contains",
"value": "/charactercreator/business/new_char"
}
}
],
"ruleType": "Script",
"status": "Active"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment