github-feed-back
Advanced tools
Comparing version 0.0.5 to 0.1.0
// ==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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4946
49
9
4