using the HTML/source editor in buildfire is stripping out <script> - buildfire

we are trying to get a very simple script to run in buildfire, but when i post the HTML and script the BuildFire editor strips out everything inside the is there a way around this? the code is quite simple, i'm not sure why it is being pulled out.
i'm linking to
and my script (which gets removed) lives happily in .. and works great on a local HTML page that i build on my desktop and render in chrome.
any advice is welcome!

This is done for security purposes. You need to use the BuildFire SDK for any custom development. Learn more in the developer portal https://dev.BuildFire.com it’s free to signup
Or jump into the documentation here https://sdk.buildfire.com/

Related

Facebook playable ads with phaser

I am trying to make Facebook playable ad using Phaser3.60 but the problem is that Facebook block XMLHttpRequest which is used internally in phaser load to load images and sounds.
do do any one know a way to images to phaser without using its loader and without using XMLHttpResquest.
I tried to use imageLoadType: "HTMLImageElement" but it also gives me the same error, I dont know if facebook detect the XMLHttpRequest in the Phaser.min or in the game code.
I'm not sure if this is the solution for your specific problem, but after some tinkering, I learn abit about facebooks playable ads.
Disclaimer: First of all, I was not able the get the zip version to run.(not on the preview Tool and not even on a real campain)
With a single file index.html, with all the data inlined (just under the 2MB limit), I can upload the application and get the same Warning,
BUT after I click the Application (what executes FbPlayableAd.onCTAClick(), as mentioned in the yellow highlighted part), then the Done Button is activated, and I can deploy the ad.
I hope this helps.

IndexedDB -- Need an tool

I have a PWA that saves data locally to indexedDb. Works fine. But I feel hampered by a lack of an editor like SSMS for SqlServer. To make a small change, I have to edit code.
I wondered if anyone had seen any tools (it looks like a chrome extension could do it) that might be useful? I'm working with Blazor (have a lot of Vue.js and Vanilla JS experience, but Blazor is just more productive).....so a component I could add to my application would be a major bonus!!
Prefer to avoid homebrew if someone has something already.
What do you mean by
so a component I could add to my application would be a major bonus
To inspect and make changes directly in the browser have a look at the Chrome DevTools.

Can I use browser's website code to recreate a website by my own way(change design, etc)?

For example, we have a cool styled website, can we use developer options(f12) from browser to snatch this?
Ignoring any legal / copyright implications, you can grab the client-side code this way, yes. All HTML, CSS, JavaScript and imagery can be seen through the F12 Developer Tools.
However, there is no way to know what server-side code a website is using (outside of the server owner themselves configuring something incorrectly and thereby exposing that information).
The answer from Obsidian Age is a good one. I'm going to add some more information that may be useful to you.
I've used this technique myself of getting source code via the developer window. Usually I want to find out how they did some neat CSS or JS trick so that I can try it in my own apps.
The files that make up a website such as HTML, JavaScript, and CSS you can find in the Network tab and can easily copy these.
However you should know the JS, CSS, and even (sometimes to a degree) the HTML files have been minimized and are typically missing any comments from the original developers. Chrome has a nice feature that will un-compress JS files and you can even set break points and step through the JS code.

How can I fix this javascript with some chrome plugin

So if you are any sort of clg fan, you'll occasionally visit azubu.tv to watch them. If you go into the chat, using chrome, you can't change your text color. The reason is in line 689 of the chat js. (it's best to pop it out since it's in an iframe). There is an extra = in the comparison that works in firefox but not chrome.
I did not code this site. However, is there anyway to use a chrome plugin to permafix that function? I've already sent out a code update request to the admin -- a month ago. I've been just opening up the javascript console to do it manually but I'd like to help others.
I isn't expected people to develop extensions (or plugins) to fix web pages' .js, because it would take a lot of effort in reverse engineering and development, and the extension will become obsolete as soon the server administrator fixes his own js.
Extensions can do it, but are a very odd way to do that.
I don't know who voted you down without a comment; it's not the way we used to do it here.

UIWebView localStorage not working

I’m trying to write an app that uses localStorage in a UIWebView. I’ve tested my code in regular Safari on the desktop and it works perfectly. I’m not accessing localStorage with the web view itself, but the JS inside is accessing it.
Now, when I actually put my JS inside an UIWebView, localStorage stops working.
E.g. putting the following into JS
alert(localStorage)
doesn’t do anything. alerting window nicely alerts me the correct thing.
I tried it both on a iPad and in the simulator and it doesn’t seem to able to work anywhere. I don’t see any properties or anything I could tweak for the UIWebView that would make it either enabled or disabled.
Couldn’t find any tutorials either on the web that deal with my exact situation.
It seems the problem lies in the domain security policy. I was able to finally figure out what the error is, but not sure if my solution is even fixable with any simple way as I’m actually putting the whole HTML together from different NSStrings.
http://forrst.com/posts/Security_err_dom_exception_18_and_how_to_avoid-1Ge has one solution if you’re dealing with local files.

Resources