Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
prerender-vkshare-useragent
Advanced tools
Readme
Prerender plugin that enables you to create snapshots that prepared for vk.com.
Prerender creates snapshots with PhantomJS useragent (like the following) even if the original request is from vk crawlers.
PhantomJS/x.x.x ...
If you prepare pages, layouts or styles for mobiles depends on those useragent, you need to be requested with mobile useragent.
So this plugin adds 'iPhone'(default) to the useragent when the original request is from mobile devices or bot.
PhantomJS/x.x.x ... iPhone
In your local prerender project run:
$ npm install prerender-vkshare-useragent --save
Then in the server.js that initializes the prerender:
server.use(require('prerender-vkshare-useragent'));
You can use the enviroment variable CUSTOM_USER_AGENT
export MOBILE_USER_AGENT=custom-user-agent
# default is 'vkShare'
FAQs
Prerender plugin that enables you to create snapshots that prepared for vkShare crawlers
The npm package prerender-vkshare-useragent receives a total of 0 weekly downloads. As such, prerender-vkshare-useragent popularity was classified as not popular.
We found that prerender-vkshare-useragent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.