12 March 2020

Detect browser plugins with javascript


DETECT BROWSER PLUGINS WITH JAVASCRIPT









While working on a project a few days ago, I needed to know if the user had Flash or QuickTime installed. After a little bit of searching I found a few solutions online.


This gave me the idea to create a script that checks for plug-ins installed in a browser. I know there are a lot of scripts of this nature online, but if you have the time, check out mine as well, you might find it useful.


The basic idea was to be able to do something like this:if(plugin.available) {do this;} else {do that;}



In standard compliant browsers it’s pretty easy to check if a plug-in is installed. You use the navigator object and check the mimeTypes property.if(navigator.mimeTypes && window.console && window.console.log){ for(var p in navigator.mimeTypes){ window.console.log(navigator.mimeTypes[p]); } }



Let me explain the code above a bit. We are doing what is called object detection or feature detection. We are basically testing to see if the browser supports a certain method or property. In this case we are first testing to see if the browser supports the mimeTypes property of the navigator object.


This property returns the mimeTypes that the browser in question supports. Then we test to see if our browser supports the console object and it’s log method.


If all those conditions are met, then we loop through all of the items in the navigator.mimeTypes property and log each one in the console.


We will get a list of objects that represent our installed plug-ins. We can log the type of each item to see the mimeType.if(navigator.mimeTypes && window.console && window.console.log){ for(var p in navigator.mimeTypes){ window.console.log(navigator.mimeTypes[p].type); } }



You will get something like this:application/googletalk application/vnd.gtpo3d.auto application/x-CorelXARA application/vnd.xara image/vnd.djvu image/x.djvu image/x-djvu image/x-iw44 image/x-dejavu image/djvu



The actual content that will be logged in the console depends on what plug-ins you have installed, so your results may be different from mine.


The problem is that in IE, the navigator.mimeTypes gives us no info about the plug-ins installed(Thanks Microsoft). If we want to check for a plug-in in IE we have to use the ActiveX control. Again, we have to do a little bit of JavaScript feature detection. Since IE is the only browser that recognizes ActiveX controls, if we try to create a new ActiveXObject without checking for support first, standard compliant browsers will throw errors.


We first check to see if the browser knows what an ActiveXObject is:if (typeof ActiveXObject != 'undefined') { try { new ActiveXObject('ActiveXObjectName'); } catch (err) {} }



Then we use a try{} catch(){} statement, because if we did something like:if(typeof new ActiveXObject('ActiveXObjectName') != 'undefined'){....}



IE would throw an error if we passed in an argument it did not recognize.


So let’s get started on our code. First we need to create an object that we will use to store information on our plug-ins in:var installedPlugins = {};



The next step is to add properties to that object. A very simple one to add is support for Java:var installedPlugins = {'java': navigator.javaEnabled()};



If Java is installed, installedPlugins.java will return true , else it will return false.


The next step is to create a self invoking anonymous function. This is done to protect the global scope.(function(){....})()



Now we need to create an object that holds the plug-ins we want to check for. There are literally hundreds of browser plug-ins on the out there, I have made this script to test only for some of the most popular.var plugins = {'flash': { 'mimeType': ['application/x-shockwave-flash'], 'ActiveX': ['ShockwaveFlash.ShockwaveFlash', 'ShockwaveFlash.ShockwaveFlash.3', 'ShockwaveFlash.ShockwaveFlash.4', 'ShockwaveFlash.ShockwaveFlash.5', 'ShockwaveFlash.ShockwaveFlash.6', 'ShockwaveFlash.ShockwaveFlash.7'] }, 'shockwave-director': { 'mimeType': ['application/x-director'], 'ActiveX': ['SWCtl.SWCtl', 'SWCt1.SWCt1.7', 'SWCt1.SWCt1.8', 'SWCt1.SWCt1.9', 'ShockwaveFlash.ShockwaveFlash.1'] }, .......... 'quicktime': { 'mimeType': ['video/quicktime'], 'ActiveX': ['QuickTime.QuickTime', 'QuickTimeCheckObject.QuickTimeCheck.1', 'QuickTime.QuickTime.4'] }, 'windows-media-player': { 'mimeType': ['application/x-mplayer2'], 'ActiveX': ['WMPlayer.OCX', 'MediaPlayer.MediaPlayer.1'] } };



Our object contains a list of plug-in names. Each plug-in has two properties: mimeType and ActiveX. mimeType is used for checking in standard compliant browsers and ActiveX is used for IE.


Now that we have our plug-ins object set up, we need to create the function that will check for support://check support for a plugin function checkSupport(p){ var support = false; //for standard compliant browsers if (navigator.mimeTypes) { for (var i = 0; i < p['mimeType'].length; i++) { if (navigator.mimeTypes[p['mimeType'][i]] && navigator.mimeTypes[p['mimeType'][i]].enabledPlugin) { support = true; } } } //for IE if (typeof ActiveXObject != 'undefined') { for (var i = 0; i < p['ActiveX'].length; i++) { try {new ActiveXObject(p['ActiveX'][i]); support = true; } catch (err) {} } } return support; }



We start by creating a function called checkSupport(). This function accepts one parameter, or argument and that is the plug-in we are testing for. The function returns true if it finds that a certain mimeType or ActiveX control is supported by the browser and false otherwise.


Now that we have our function set up, we need to loop over the plug-ins in our plugins object and test to see if each one is installed or not.//we loop through all the plugins for (plugin in plugins) { //if we find one that's installed... if (checkSupport(plugins[plugin])) { //we add a property that matches that plugin's name to our "installedPlugins" object and set it's value to "true" installedPlugins[plugin] = true; //and add a class to the html element, for styling purposes document.documentElement.className += ' ' + plugin; } else { installedPlugins[plugin] = false; } }



To test if a browser plug-in is installed you need to check the installedPlugins object. Like this:if(installedPlugins.flash){....} else if(installedPlugins.quicktime){....} else if(installedPlugins.windows-media-player){....}



A class containing the plug-in’s name is added to the html element, just in case you need to style the page differently if a plug-in is installed/missing.<html class="3dmlw djvu google-talk flash shockwave-director quicktime windows-media-player pdf vlc xara silverlight">...</html>



Please note that this script only checks for a few plug-ins, those which are most used. If you wish to check for another plug-in you will need to add the necessary info to the plugins object.


The script currently checks for:
Java
3D Markup Language for Web
DjVu
Flash
Google Talk
Acrobat Reader
QuickTime
RealPlayer
SVG Viewer
Shockwave
Silverlight
Skype
VLC
Windows Media Player
Xara


If you find any problems with the code or have any suggestions on how to improve it, please leave a comment.

12 February 2020

The best VPN services 2020 - Top 5 VPNs ranked


               The 5 Best VPN Services 2020


Exceeded our expectations for trust and transparency, the most important factors to consider when you're choosing the best VPN service.

1.ExpressVPN

ExpressVPN is one of the veterans in the VPN space and has been consistently the most reliable VPN I've tested.

2.Surfshark VPN
If Surfshark’s claims are anything to go by, then they truly deliver. I was impressed with the fast speeds, reliability, strict no-logs policy, and advanced encryption.

3.CyberGhost VPN



CyberGhost is one of the most user-friendly VPNs, and one that doesn’t skimp out on extra features in the name of “simplicity.” It has blazing speed and top of the line encryption.


4.IPVanish VPN



If Surfshark’s claims are anything to go by, then they truly deliver. I was impressed with the fast speeds, reliability, strict no-logs policy, and advanced encryption.

5.PureVPN




PureVPN is a Hong Kong-based provider that’s been in the VPN business since 2007. With ten years of experience, it’s no wonder the company offers an impressive server coverage – 141 countries, 180 locations, and 750+ self-managed servers. Do note that some of these servers are virtual. There are no third-parties involved and the provider doesn’t log user activities. All servers support OpenVPN, L2TP/IPSec, PPTP, SSTP, and IKEv2. Considering Pure VPN often pops up as a highly-recommended provider, I had to give it an unbiased look myself.

16 December 2019

Most useful free APIs in 2020

Best Free/open surce  APIs 

APIs amake your life a lot better and easy . Application Programming Interfaces (APIs) allow developers to build out components of apps that seamlessly communicate with other apps. Some of these APIs are not only free or open surce  but they are also easy to implement, even for marketers and other non-developers.


TOP 5   Webconverger REST API



The Webconverger API allows to integrate Web Kiosk features, just like in banks, school or libraries where multiple computers provide services to users. It is open source and it is available in JavaScript language. Webconverger is a Linux-based OS for accessing Web apps privately and securely. For additional information about protocols and authentication, contact @webconverger on Twitter.

https://webconverger.org/API/




TOP 4 Luxe Engine REST API



The Luxe Engine API offers video games integration into Apple, Linux, Windows, HTML5, Android, and iOS platforms. It provides JSON resources to implement Luxe game features such as cameras, physics, render, sprite, collision, data, shapes, objects, textures, and geometry.

https://luxeengine.com/


TOP 3  SonarQube Webhooks Streaming API



This SonarQube service allows Webhooks that POST to the external HTTP(S) URLs you specify after the analysis report has been processed by the Compute Engine. Webhooks are used to notify external tools of the Quality Gate statuses of your projects. SonarQube enables developers with continuous inspection of code quality.


https://docs.sonarqube.org/latest/project-administration/webhooks/


TOP 2 Google Accelerated Mobile Pages Cache API




The Google Accelerated Mobile Pages Cache API retrieves a list of AMP URLs for a given list of public URLs. Google AMP Cache serves cached copies of valid AMP content published to the web that is available for anyone. The AMP Project is an open-source initiative that enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.

https://developers.google.com/amp/cache/reference/acceleratedmobilepageurl/rest/




TOP 1 Farm bot API




The number of public APIs is consistently increasing as app development continues to grow as a field. It can be a lot to weed through. We asked accomplished developers and tech-savvy marketing pros what free APIs they couldn’t live without. Some of these APIs are not only free but they are also easy to implement, even for marketers and other non-developers.

https://developer.farm.bot/docs/rest-api

15 November 2019

Top 5 Tools To Take Website Screenshots


Best Site Screenshot Services

Screen captures can be immensely useful for education, support, presentations, etc. When capturing Web pages, your captures are typically . list of  Best Website Screenshot Tools .



TOP 5)  Capture a Website screenshot



Free Online Website Screenshot Tool .





Within 10 minutes, you can improve your UX with a screenshot. Stop wrestling with open source solutions and say goodbye to the headache of monitoring and maintenance.

https://urlbox.io/




lets you screen-capture beautiful and high-resolution screenshot images of any web page on the Internet. You can screenshot tweets, news articles, photo galleries and everything that's public online.You don't need any screen-capture software or browser extensions to capture screenshots. And the tool works with lengthy web pages too that extend below the fold. To get started, simply enter the full URL of any web page in the input box, solve the CAPTCHA and hit the "Screen Capture" button.Screenshot Guru cannot capture web pages that require login (like your Gmail mailbox), pages with Flash embeds (like the YouTube video player) or AJAX based sites like Google Maps.


Capture screenshots of any URL or website with this free website screenshot capture tool. You can capture high-quality PNG screenshot images of web pages, the simplest way to quickly take web page screenshots. Just enter the URL in the form below and press the button, our service will take a screenshot of the submitted URL within a few seconds.



service provides real-time desktop and mobile screenshots of websites as a service. We are the only website screenshot generator to live stream thumbnails.

11 November 2019

Best Tools for WHOIS Lookup and Domain WHOIS Information


Best Tools for WHOIS Lookup and Domain WHOIS Information

If you want to see WHO IS the owner of domain name and their contacts, you need WHOIS lookup tools. The information you provide for domain is called WHOIS data and it will be accessed publicly. This WHOIS domain data will be maintained by domain registrars and available for the public to see who owns the domain name and other information.



TOP 6 whois.ulvis.net





All the WHOIS information for the domain and IP address.


TOP5 whois.icann.org/en




Domain Name Registration Data Lookup

This tool gives you the ability to look up the registration data for domain names.


TOP 4 whois.net



whois.net, Your Trusted Source for Secure Domain Name Searches, Registration &amp; Availability. Use Our Free Whois Lookup Database to Search for and Reserve your Domain Today at Whois.net!


TOP 3 mxtoolbox.com/Whois.aspx



whois Lookup Tool - Check Domain registration info - MxToolbox


TOP2 verisign.com/en_IN/domain-names/whois/index.xhtm



Verisign’s WHOIS tool allows users to look up records in the registry database for all registered .com, .net, .name, .cc, .tv and .edu domain names. It also supports Internationalised Domain Names (IDNs) such as .コム, .닷컴, .닷넷 and .كوم.



TOP1 whois.domaintools.com/






Research domain ownership with Whois Lookup: Get ownership infoand IP address history.

25 August 2019

TOP5 Free Sites To Watch TV Shows & Series Online

List of Websites To Watch TV  Series Online For Free


1. swatchseries.to



The best and highly recommended website to stream popular series for free. The content of this website is so humungous that it can even outrank many premium services. The paradise for people who love to watch TV series online, the site has been divided into 4 major categories/section.  One section maintains the schedule of upcoming TV series while another list down the popular series you can binge online.


2. fmovies.to




Just switch to the category, find your show/movie in the list, download or stream it online in any resolution of your choice, all for free. Just make sure that you have good internet connectivity to join this network and start enjoying free TV series online. If you are looking for a mind-blowing platform to revive your favorite TV series memories, Bmovies can definitely be a priority. One can also visit sites like Fmovies if the website is not accessible in your region.   It not only deals with the TV series but also provides free access to movies 

3. https://watchtvseries.io



The site came to existence many years ago just to quench the thirst of many TV series lovers. The site has more than 500+ popular series you can search and watch instantly. Among a few websites to watch series, watchtvseries is completely dedicated to series & drama, nothing else.

4. https://w8.all123movies.com


Another good site to watch the latest shows & seasons with thousands of TV shows and movies which you can watch online anytime with absolutely no hassle at all. You might be thinking of a jammed server with the thousands of movies reference, but this is not so. It is a completely responsive site which you can operate using your smartphones or any other similar device.


5. http://solarmovie.fm




When you visit Solarmovies, what you’ll see is a very neat and clean webpage with a search bar placed prominently in the center. You can use that search bar to find your desired movies or TV shows on this site, and that’s it. No bells, no whistles. Simplicity is the USP of Solarmovies.

04 May 2019

TOP 10 kissanime alternative sites

TOP kissanime.ru (kissanime.to , kissanime.com) alternative sites

There are many other sites like KissAnime that can be used as KissAnime alternatives to enjoy as much Anime as you want for free.
list of popular alternative websites.


TOP 10 animefreak


Watch anime online in English. You can watch free series and movies online with English subtitle.


http://animefreak.tv/


TOP 9 gogoanime



Watch anime online in English. You can watch free series and movies online and English subtitle.


https://gogoanime.in


TOP 8 animekarma.com



Masterani is an anime info database with a streaming option to watch anime in HD. Join the community to keep track of your watched anime and get to follow friends to see what they're watching..


https://animekarma.com


TOP 7 aniwatcher.com/



Watch anime online your favorite anime series stream for free with the large database of Streaming Anime Episodes.


https://aniwatcher.com/


TOP 6 animefrenzy



AnimeFrost is the best website to watch Anime in High Quality stream..


https://animefrenzy.net


TOP 5 animeyoutube



ike anime? Like that high definition? So do we. We are Anime Haven. And we tend not to suck.


https://animeyoutube.com/


TOP 4 animexd.me



Watch anime online with English dubbed + subbed. Here you can watch online


http://www.animexd.me


TOP 3 ryuanime



. Watch Dubbed Anime / Subbed Anime Online in HD at RyuAnime! Over 40,000 Episodes, and 2,000 Anime Series!


http://www.ryuanime.com/




Watch anime online free in English dubbed, anime English subbed. Streaming anime online in high quality. Watch ongoing anime online.


TOP 2 animeultima.eu



Welcome to the anime world, you can watch anime online in hd, streaming anime online free. Watch anime English Dubbed, English Subbed on the any devides.


https://www12.animeultima.eu/


TOP 1 9anime




Watch anime online in high quality with English dubbed + subbed. Here you can watch online anime without paying, registering. Just come and enjoy your anime and use tons of great features...



http://9anime.to/

13 April 2018

TOP 5 browser info websites


Best browser information and IP address websites

Everything that it's possible to detect about your web browser; we'll tell you ... Web browser & system detection ... Let your clients email their info directly to you.





tells you what web browser and version you have, operating system and device which you're currently using.


http://ulvis.net/browser/




In order to leverage this information, you need to understand the component parts of a user agent string, and consider also the potential risks of using this method to deliver content.





https://www.whoishostingthis.com/tools/user-agent/

TOP3  mybrowserinfo

is the fastest and easiest way

to determine your IP address and information about your Web browser.



http://mybrowserinfo.com

TOP2 browser information online domain tools



Gives you information about your browser, system, IP address, location, supported web features.



http://browser-information.online-domain-tools.com/


TOP1  Whats my browser
              


Why is my browser info important? Different browsers have different capabilities. And although these differences may seem minor, it's common for websites to work fine on one browser but poorly on another. The information on this page may help support teams troubleshoot technical issues specific to your browser.


https://www.whatsmybrowser.org/