Make Chrome notifications last longer - google-chrome

i am a complete noob in coding, i have a question on how to make chrome's notifications stay until i dismiss them like youtube does. I have already seen the answers to the question, but i really don't understand how to do it. Hope you can support my noobiness and make a quick tutorial on how i can do it, i would appreciate it. it's crucial for me i have to do this but i don't know how to code in chrome and developer stuff i read many blogs and posts but still can't understand. Any help is highly appreciated !

You can make a notification persist until dismissed with requireInteraction flag:
Indicates that the notification should remain visible on screen until the user activates or dismisses the notification. This defaults to false.

Related

Hide Google Doogle from Chrome "New Tab"?

this might question might not belong here, but idk where a better place would be.
Is there a way to remove the Google Doodle from the "New Tab" page in Chrome?
It's often "Corona, stay safe" lately, and I spend a lot of time on the web, and find it quite depressing to be reminded of it all the time.
I tried AdBlock, but it doesn't want to block stuff on that page for me :/.
Thanks :)
You can install the Adblock extension, and make sure to block http://www.google.com/logos/*

How to make a website searchable by chrome?

Didn't know how to phrase my question but I'll try to explain it here.
Have you seen how you can start typing a website URL in chrome's then hit [TAB] and then chrome's URL bar will jump into a searchy status?
For example, type 'facebook.com' in your address bar, then hit [TAB]. what you type in now will be searched for inside facebook.
What does facebook have to have for it to work?
So the thing youre talking about is called omnibox, and here's a link to a similar question which includes loads of detailed answers: How to add google chrome omnibox-search support for your site?
Hope this helps.
Edit: For those reading wondering why they can't replicate the facebook example given in the question, omnibox doesnt always work for everyone, its always been iffy on my work computer but works perfectly at home, I believe its something to do with the browser settings (official advice is just to reset them and try again!)

Starting off with Mozilla development/contribution to Fennec

This is the first time I am trying to contribute to Mozilla. I went through several articles and documentation/resources to get a hang of what could be the best first steps to get started. I started off from this page http://whatcanidoformozilla.org1 and chose to start off with Java.
On initial tinkering I was taken to https://wiki.mozilla.org/Mobile/Get_Involved and eventually https://wiki.mozilla.org/Mobile/Fennec/Android/Suggested_workflow resource suggested that the best way to get started with it would be to pick up some simple bug and propose a patch for it.
So then I went to http://www.joshmatthews.net/bugsahoy/?java=1&simple=1 and this specific bug drew my attention. The description of the bug mentioned this :
There are some methods that we share (or can share) across our DB
implementations, like appending PARAM_SHOW_DELETED, PARAM_LIMIT, or
PARAM_PROFILE.
These are currently spread across LocalBrowserDB, TabsAccessor,
URLMetadata, and so on. It'd be nice to clean these up.
Question 1. Now how do I get some more context on what exactly is the bug and what is required to be done ?
As of now there seems to be 2 patches already submitted from what I understood (and please correct if my understanding is wrong here). So to get some context about the bug I went ahead and opened up the first patch submitted here.
It gave me some idea as to at least where exactly is the code itself that needs to be fixed. And I found it here
Question 2. Am I on the right track on how to figure out the code that needs to be fixed ?
Question 3. Even after reaching the DBUtils.java file I could not find any documentation about what the class basically does, or where does it fit into the whole picture. Could someone please help me with this, as to how do I figure out what a class is supposed to be doing etc. or at least some documentation around it?
You're on the right path. Basically, the What Can I Do For Mozilla website is a quick and easy way to let you discover projects you might be interested in, so it's the first gateway to the coding contributions.
That said, you did good in picking a bug to start off. However, as you saw the bug was already being worked on by somebody else (marked as Assigned). Your best bet is to find some new "good first bug" to work on. This might be a complicated task, as Bug's Ahoy shows only a few not owned good first bugs.
You should try to get in touch with the Fennec team, either via email or IRC (the latter for quicker responses).
Now, to answer your questions, in a more general way
Question 1. Now how do I get some more context on what exactly is the
bug and what is required to be done ?
Usually, this should be described in the first comment in the bug, on Bugzilla. If that's not the case, feel free to drop a message there and ask for more directions. You can also flag the reporter or the mentor of the bug using the needinfo functionality, as they are usually better shown.
As you can see, somebody asked for more info in comment 1 and some new directions were given.
In general, you won't find a patch with code on the bug itself, but you might find links to files and more precise directions on what to change and how. If not, again, feel free to ping the reporter and/or mentor.
Question 2. Am I on the right track on how to figure out the code that
needs to be fixed ?
You're on the right path. In general, if there are no links to files or DXR on the bug, but some code is mentioned, you can look it up using DXR, as you did.
Question 3. Even after reaching the DBUtils.java file I could not find
any documentation about what the class basically does, or where does
it fit into the whole picture. Could someone please help me with this,
as to how do I figure out what a class is supposed to be doing etc. or
at least some documentation around it?
What I usually do when navigating the Firefox code and need some more background on a not so well documented class, is browse the change log for that file, clicking on the Log button in the top-right panel on DXR (when displaying the file). It will show you a list of bugs that affected the file. You can even trace back the original file that implemented it, to get more context.
On the other hand, if you're only interested to the history of a single line of code within a file, then the blame tool is your friend. It tells you who last touched the line, the changeset and the related bug number. That is also accessible from where you can find the Log, here.
In the case of DBUtils.java, however, it looks like the class just holds some utility functions for database access.
To see how something is being used within the Firefox codebase, you can still use DXR. Here's a sample search for the DBUtils object.

AIR popup window with virtual keyboard(as3.0)

This is about kiosk contents(Full-Screen).
I'm trying to input some texts in the 'AIR popup-window'(facebook login)
with virtual keyboard(as3.0).
I know the 'HTML loader class' can be a solution, But I think this is different case.
How can I make it? I really need your ideas!
Thank you for read this, and sorry my bad English.
With respect you should really do a thorough search on google or even stackoverflow, as this question has been posed already at least once. Anyway here is a question on the same issue some one answered here:
Flash APIs for Android Platform
Basically it involves a new method in InteractiveObjects that manually invokes the system soft keyboard. Pretty basic stuff. Hope it helps! :)

Facebook comments and moderation tool "Sorry, something went wrong."

It's been like 3 days with this eerror which I thought was from fb's side. I had already a working comment box, but 3 days ago it started to show:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Going to the moderation tool page shows the same too http://developers.facebook.com/tools/comments .
Curiously though, my comment boxes in other pages are working as supposed to. The affected page is just a personal one of mine: http://efaj.tumblr.com/
From what I've searched, I've only found either old information or unrelated
Yes it is a known new issue with Tumblr and Facebook,
I created a bug report about it here and if you want then you can subscribe to it.
Clear your browsers cookies. That will fix it.