
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
vue-prerender-exclude-social
Advanced tools
A components that excludes social and tracking codes from pre-rendering usin the prerender-spa-plugin
A components that excludes social and tracking codes from pre-rendering using the prerender-spa-plugin (https://www.npmjs.com/package/prerender-spa-plugin)
Example end page result can be found here http://vue-prerender-exclude-social.surge.sh/#/
add the following to the prerender-spa-plugin
renderer: new Renderer({
headless: false, // your choice
captureAfterDocumentEvent: 'render-event', // your choice
injectProperty: '$PRERENDER_INJECTED', // This is important
inject: {
disableNonSPAScripts: true, // Set this to true/false
},
}),
import PreRenderExcludeSocial from 'vue-prerender-exclude-social';
/**
* Configure the pre-render plugin
* @property gtm: {} | optional - google tag manager
* @property enable: true, false - enable or disable gmt
* @property gid: String - GMT Id like GTM-NHN7KZT
* @property use: Function | optional - custom function to overwrite the this plugins code injector
* @property fbPixel: {} | optional - facebook pixel
* @property enable: true, false - enable or disable facebook pixel
* @property appId: String - fb App Id
* @property use: Function | optional - custom function to overwrite the this plugins code injector
* @property fbSdk: {} - | optional facebook sdk
* @property enable: true, false - enable or disable facebook SDK
* @property appId: String - fb App Id
* @property use: Function | optional - custom function to overwrite the this plugins code injector
* @property zenDesk: {} | optional - zenDesk chat
* @property enable: true, false - enable or disable zen desk
* @property key: String - Zen desk widget key
* @property use: Function | optional - custom function to overwrite the this plugins code injector
*/
const config = {
gtm: {
enable: true,
gid: 'GTM-NHN7KZT',
},
fbPixel: {
enable: false,
appId: 'Your App ID',
},
fbSdk: {
enable: false,
appId: 'Your App ID',
},
zenDesk: {
enable: false,
key: 'Your Key Id',
},
};
Vue.use(PreRenderExcludeSocial, config);
# Get to test page project
cd test-page
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
FAQs
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.