Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-feed-back

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-feed-back - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

13

dist/github-feed-back.user.js
// ==UserScript==
// @name GitHub Feed Back
// @namespace https://github.com/Sec-ant
// @version 0.0.5
// @version 0.1.0
// @author Ze-Zheng Wu

@@ -13,2 +13,4 @@ // @description Bring my GitHub feed back

// @supportURL https://github.com/Sec-ant/github-feed-back/issues
// @downloadURL https://registry.npmmirror.com/github-feed-back/latest/files/dist/github-feed-back.user.js
// @updateURL https://registry.npmmirror.com/github-feed-back/latest/files/dist/github-feed-back.user.js
// @match https://github.com/

@@ -23,3 +25,4 @@ // @match https://github.com/?*

let found = 0;
let isIncludeFragmentFound = false;
let isFilterButtonFound = false;
const observer = new MutationObserver((_, observer2) => {

@@ -31,3 +34,3 @@ const includeFragment = document.querySelector(

includeFragment.src = "/dashboard-feed";
++found;
isIncludeFragmentFound = true;
}

@@ -39,5 +42,5 @@ const filterButton = document.querySelector(

filterButton.remove();
++found;
isFilterButtonFound = true;
}
if (found > 1) {
if (isIncludeFragmentFound && isFilterButtonFound) {
observer2.disconnect();

@@ -44,0 +47,0 @@ }

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.0.5",
"version": "0.1.0",
"type": "module",

@@ -43,5 +43,5 @@ "files": [

"build": "vite build",
"postbuild": "tsc",
"preview": "vite preview",
"prepublishOnly": "npm run build",
"postpublish": "npm-mirror-sync",
"ncu": "npx npm-check-updates -u",

@@ -55,2 +55,3 @@ "postncu": "npm i"

"npm-check-updates": "^16.13.2",
"npm-mirror-sync": "^1.0.0",
"prettier": "^3.0.3",

@@ -57,0 +58,0 @@ "typescript": "^5.2.2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc