This has been discussed in a few threads - but none gave any real answers.
I need to develop a very simple browser addon which just has a single button, and can run a javascript function when pressed. It must sit as a toolbar or similair.
Now, is there an easy way to develop once for Chrome, IE, and FF?
Only supporting the latest version of each browser is fine too.
Thanks
If you mean a javascript (not particular to a certain browser e.g showing the history) you can run it like this (pasting it into the url bar):
javascript:alert("Hello!");
You can make a link with the href going to your script, then tell your users to drag the link into their bookmarks bar. E.g
Link text
Related
I have been searching all day and I cannot for the life of me find out what the url is for Microsoft Edge! I'm trying to set it as my homepage on my Samsung S20, but it says it needs a url, but whenever I go to search for the url, it just tells me about MS Edge Canary/Chrome doesn't use urls anymore. I don't have a windows version, and the only other information I can find is for Windows phones! I have a MS365 account, so I am also running into sync problems between Edge, Edge Canary, Edge Canary Dev, as well as Bing, Google, and Google Chrome. If anyone could possibly let me know if there's another way of accessing Edge, specifically Canary, as their homepage, I would be so grateful!
Do you want to know how to set the browser homepage in MS Edge? If this is the case, you could refer to these steps below:
Launch Microsoft Edge on Android.
Tap on ... menu for options.
Choose the Settings menu from the list.
Select the Home page tab from the available menu options.
Switch the Radio button to A Specific page.
Enter the URL that you want to set as a homepage. ex: https://www.bing.com
Hit on the Save button.
If I misunderstood anything, could you explain what the "what the url is for Microsoft Edge" you mentioned is? And describe your problem in more detail? Thank you for your understanding.
I have a SharePoint online 2016 site, with a List. Now i want to have a URL (build in MS Flow) that will point directly to a specific item in Edit mode.
Meaning to have this view (both list behind and right "popup" screen):
And not like this (Copy link url)
I am able to have it opened in full screen but not like the screenshot.
Can anyone tell me if this is even possible?
I have looked into these:
http://mmkhome.blogspot.com/2010/12/sharepoint-edit-page-url-querystring.html
http://blogbaris.blogspot.com/2012/09/open-sharepoint-2010-display-edit-new.html
https://social.msdn.microsoft.com/Forums/en-US/c27e2cdd-bddb-473c-9782-0309e026204f/to-show-a-editform-in-dialog-box?forum=sharepointcustomizationprevious
https://www.spcnl.nl/redirect-link-to-item-url-from-out-microsoft-flow-to-editform-instead-of-displayform/
and tried literally everything suggested in all these links but no luck.
Things like:
Web URL/Lists/List Name/AllItems.aspx?displaymode=design
Web URL/Lists/List Name/EditForm.aspx?ID={List item ID}
/DispForm.aspx?ID=...
/EditForm.aspx?ID=...
?ID=123&pagemode=edit
?ID=123&mode=edit
PageType=4
Any suggestion is greatly appreciated!
Devtools shows that after clicking on "Edit" button above list name (the way you open this extended edit menu from first screenshoot), a REST API call is fired:
https://tenant.sharepoint.com/sites/test_site/
_api/web/GetList(%27%2Fsites%2Ftest%5Fsite%2FLists%2Ftest%5Flist%27)
/RenderExtendedListFormData(itemId=4,formId='editform',mode='2',options=15,cutoffVersion=0)
And that's it - RenderExtendedListFormData method fetch data and later, I guess, JavaScript does the rest of magic and slides out the edit menu.
To sum up: I am afriad it will be not possible using only pure URL.
I have an xul overlay based Firefox Add-on that works. It has inline options defined in content/options.xul and they display/function correctly when the user goes to Firefox->Add-ons->Extensions->{The Name of My Extension}->Options
The question, can I a create a button on my Add-on that will launch my options either by taking the user to Firefox->Add-ons->Extensions->{The Name of My Extension}->Options with one click or by launching a dialog based on options.xul?
Right now I am maintaining a separate options.html and options.js that gets and sets the same settings that options.xul handles when the user navigates there via the Firefox button but I would much rather dump options.html and options.js and only maintain my main.js and options.xul.
Any comments or code examples will be greatly appreciated.
This is easiest to do via a global function BrowserOpenAddonsMgr() defined in the browser window, like this:
BrowserOpenAddonsMgr("addons://detail/" + encodeURIComponent(addonID));
This function takes care of focusing the existing add-ons tab if there is one or opening a new tab. It will not scroll down to the options however which is an issue if the add-on has a lengthy description. Starting with Firefox 12 this can be solved by adding "/preferences" to the view identifier:
BrowserOpenAddonsMgr("addons://detail/" + encodeURIComponent(addonID) + "/preferences");
With older Firefox versions you are out of luck (and you shouldn't use this suffix there, it won't work). The other issue is that there can be a lengthy "loading" phase where the add-ons manager fetches metadata for all extensions.
I have a blog on Blogger, and sometimes, I notice that double green lines are automatically added below certain words, which will display an ad if you hover over it (see picture below). Is there a way I could permanently make these lines not show up (e.g. by adding code to the Blogger template)? I just noticed them being added to some of my posts recently, and I want them to go away forever.
This is most probably a browser plugin/gadget that is inserting these links, not Blogger. Disable, or better, uninstall the TextEnhance plugin/gadget .
See: http://wafflesatnoon.com/2011/10/05/seeing-unwanted-text-enhance-ads/
I was having the same text-enhance issue. It was installed on Chrome under the extension Premium-play codec c. Deleting the ext got rid of the adware.
To de-install this trojan horse, follow these steps:
De-install the following program(s) (go to the 'Add/Remove' section in the Control Panel):
--Pando media enhancer
--I Want This!
2) Apps/extensions for Chrome
*To remove extensions, type chrome://extensions into the omnibox/address bar
*To remove apps, go to the New Tab page > Apps panel > right click app you want to remove
--Premiumplay Codec-C (extension)
--Yontoo Layers (extension?)
--Rewards Gaming (app)
For Internet Explorer, disable the same extension(s).
I hope this helped banish this software from the internet.
Best regards and good luck!
When you get a pop-up, click on the name of the company that conducts the ads and you will go to their corporate site that has a disable link and it will effectively disable these links in any page that the company conducts business. Close and reopen browser and you will no longer see double line ads from that company anywhere on the internet. If you clear your cookies you will have to repeat this step, However, this is an easy way to stop the ads without corrupting your OS or browser. If you have to hack code and you don't know what you are doing you can damage a program or your computer beyond repair...If you know what you are doing then go forth and hack away.
I'm developing an internal Google Chrome Extension that needs a way to initiate print the current page to the printer. I do not want the default Print dialog to come up (so, javascript:window.print() is out of question).
As far as I understand, this is not possible just with the JS + HTML plug-in, so I'm also open to using the NPAPI plugin also (with a dummy mime-type). And I'm concerned for Windows platform only.
I'm also open for various hacks / workarounds if possible, though a standard solution would be nice.
If you think this is not possible, let me know if you know any feature request logged for it?
Any suggestions/clarifications are welcome..
In chrome (v18+) we have the --kiosk --kiosk-printing switches. One can print automatically to default printer without print confirmation.
You can see it from this video http://www.youtube.com/watch?v=D6UHjuvI7IE
Since NPAPI allows you to create native C++ plugins that you can interact with through an object tag (which you can use from an extension), that would probably be the way to do it.
The tricky bit is that I don't know of a good way to get the bits for printing the page. The only person I know of who has done something similar to this actually got the window handle for the browser (available through NPAPI) and scraped the bits off of it to print that way, but that won't take into account print stylesheets or anything. You could also try using automation events to try to control the print dialog, but I have no idea if that would work or not.
By design, the browsers try not to let you do something like this, as it could open some serious vulnerabilities if any website could just start printing things to your printer without confirmation...
Anyway, if you find a way to do it with C++ you can use FireBreath to ease the creation of the NPAPI plugin.
There are various extensions that take snapshots of the current web page (for example, this one); you could adapt one to send the image to a printer via an NPAPI plugin.
I've recently been looking for a similar ability, and it seems like it would be quite possible using Chrome's new native messaging api.
https://developer.chrome.com/extensions/nativeMessaging
There are plenty of examples of this with C#, but here is one quick example of troubleshooting Chrome native messaging with a basic C# application
Native messaging from chrome extension to native host written in C#
I realize this may be a day late and a dollar short, but in case anyone else comes across this question, this is the solution that worked for me. From inside a C# app, you can directly print to installed printers using the PrintDocument class. If you figured out a way to get the page image, this would be far easier than using firebreath or NPAPI.
Disable print preview in Google Chrome on Mac
Quit Google Chrome
Launch Terminal on your Mac. (Search “Terminal” using the Search box)
Type defaults write com.google.Chrome DisablePrintPreview -bool true
Close Terminal and open Google Chrome
Disable print preview in Google Chrome on Windows
Close Google Chrome
From your desktop, right click Google Chrome
Click Properties
In the dialog box, add ‘ –disable-print-preview‘ at the end of the Target field sans the apostrophe (make sure to include the space before –)
Click Apply
Disable print preview in Firefox on Mac
In the address bar type “about:config” and press Enter.
Right click on the page, hover over ‘New’ and click on ‘Boolean’
Type ‘print.always_print_silent’ as the preference name and click ‘OK’
Click on ‘true’ and click ‘OK’.
Close the about:config window.
Disable print preview in Firefox on Windows
In the address bar type “about:config” and press Enter.
Right click on the page, hover over ‘New’ and click on ‘Boolean’ Type
‘print.always_print_silent‘ as the preference name and click ‘OK’
Click on ‘true’ and click ‘OK’.
Close the about:config window.
https://support.dryfta.com/how-to-disable-print-preview-in-chrome-firefox-on-windows-mac/