tampermonkey best practices for sharing [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I have developed a userscript for blind users that reads screen on a card-game website playing audio files and also lets user play cards using keyboard instead of mouse.
The script is now working fine on my computer but I plan on keep updating it with new features.
Initially this was designed for just 1 person, but word spread and more people from other countries are gonna use it.
My question is this: what is the recomended way to export the script into their computers? Is there any kind of "userscript store" for tampermonkey scripts where I can place the script for anyone to download and use?
I have seen tutorials explaining how to download scripts other made, but none about sharing the ones you make with others.
How are new versions managed?
I was thinking about copying the main code into my personal website and reference it as a required script so anytime I update it they get a new version, but wonder if this is the way to go.

You can host tampermonkey scripts on Greasyfork. You can either upload code directly or link to a file in a GitHub repository, which can be set to auto-update.
There are many other ways/places to host tampermonky scripts, this is just what I've used recently. You can read about the other ways, here.

Related

Implementing private video chat rooms onto a website [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I want to implement a private video chat room software onto my website. Like Google Meet without the bells and whistles (just video calling with a shareable private link).
I found an open source platform called Daily.co. Should I use this? What technical requirements would I need to hire a developer for? What would be the cost of a project like this?
I work at Daily so I can try to help answer this. We have two options (Custom or Daily Prebuilt, which can just be embedded right into your website or made full screen to fill the page). Prebuilt covers the use case you described and you'd really just need a dev comfortable with basic JavaScript (we've intentionally made this as easy to embed as possible.)
There's a custom option too if you want the video call UI to have a specific design, so that would take a dev with a bit more experience. :)

Chrome Extensions: Can I run a game on them? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm looking into chrome extensions, and I was wondering if it's possible to change a specific website to add a box and run a game on it.
I believe I can change the website, no problem. But I'm having trouble figuring out what I can use to run a game in there.
Do have in mind that I'm relatively new to web dev (but not to code).
Thanks in advance!
Yes, it is possible to manipulate pretty much anything on the website, as long as the user who installs the extension gives you permissions to inject content scripts into the page. Content scripts are the Javascript and CSS files that would contain logic for your game. Once injected, you can target a DOM element in the page and initialise your game there or even create a new element and embed it somewhere in the HTML.
This is a good place to start https://developer.chrome.com/extensions/content_scripts

AJAX Microgames [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
If you're not familiar with the concept of a Microgame, check out this video of WarioWare Twisted.
I'm interested in setting up a site where users can play series of browser-based Microgames which are delivered to them by a server. Ideally this would allow me to crowdsource the games and have an open submission system. What sort of scheme could I use to make this work?
I'm thinking that one way to do it would be to have each game consist of:
A javascript file that defines a MicroGame object that controls a rectangular portion of the screen, gets input and timing information from the main page, then calls back to the main page with a "Success" or "Failure" message.
A folder of assets that must be downloaded before the game executes.
Is this possible to do, client-side within a browser? Where would be a good place to start figuring this out?
There are a lot of open issues here. The biggest problem is what language do they submit games in which you can execute safely on the players machines? That said, there are tools like this out there. You could look at the excellent Play My Code for inspiration.

Website technologies [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm a sw engineer but I have almost zero experience in web development. I have noticed recently few interesting websites and I'm curious how they are built.
The first example is
http://www.google.com/nexus/5/
I'm really excited about the way page reacts when you get to the mid part where it describes the camera.
Today I saw that Microsoft has a similar website for their new CEO
http://www.microsoft.com/en-us/news/ceo/index.html
Since this is Microsoft, I'm guessing that it uses completely different web technology.
So, my question is, if I were to build a website like this for myself, where would I start first? I'm guessing that Google's website is relying heavily on JavaScript, but are there any open libraries/frameworks that I could use to achieve this effect?
Parallax scrolling for the scroll effects.
The jQuery library of javascript and of course using HTML / CSS for styling and structuring your pages. This is where you can start off.

Javascript - Dynamically Create it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a set of users with different permissions. Depending on what permissions they have, they should only have access to a certain javascript files. In terms of speed, is it better if on every instance of their visit, I check the permission of that user, create one javascript file that contains ALL the javascript commands accessible to that user, and load that file into the view?
Or is it better to have multiple javascript files, call them page#_permission# (for instance, page1_permission10.js), and just load the corresponding files every time the page loads?
Thanks
It is probably faster to load in only the JavaScript that is needed BUT...
It probably will not be significant enough to warrant the effort. Futhermore, you may find youself in debugging hell just to save a few ms.
Firefox and many other browsers have built in tools which describe how much time it takes to load a page. Below a recent example for stackoverflow.com. You can perform a similar operation you site and locate the bottlenecks.

Categories