Adds star history chart to sidebar of GitHub repos
Ini adalah versi dari skrip ini yang kodenya telah diperbarui. Tampilkan semua versi.
Improved regex ↞ [auto-sync from adamlui/userscripts]
adamlui/userscripts
Added/removed line breaks for readability, removed no-longer used alertQueue
alertQueue
fix: resolve compatibility issue with Refined GitHub (layout glitch)
修复启用Refined GitHub后,星之历史布局异常
Updated @version to 2024.10.25
@version
2024.10.25
Merge pull request #49 from Night-stars-1/main
Refactored updateCheck() to align w/ my other userscripts for easier maintenance
updateCheck()
Replaced ui + feedback func defs w/ chatgpt.js import for less code/easier maintenance
ui
添加按钮,方便移动设备
Bumped @version to 2024.10.17.15
2024.10.17.15
Converted un-interpolated template literal to string
Merge pull request #46 from ChinaGodMan/insertBtn
Narrowed scope of @connect URLs for improved privacy/security ↞ [auto-sync from adamlui/userscripts]
@connect
Replaced app init w/ remote app.json fetch
app
Moved func defs to top to align w/ my other usersripts for easier maintenance
Added main routine section comment
Replaced config w/ more readable app
config
Removed no-longer used safeWinOpen() 2nd arg in zoomStarHistory()
safeWinOpen()
zoomStarHistory()
Replaced window.open() in zoomStarHistory(), condensed def
window.open()
Shortened safeWindowOpen() to safeWinOpen()
safeWindowOpen()
Replaced .addEventListener()s w/ simpler .on<event> assignments
.addEventListener()
.on<event>
Removed padding around non-expressions in template literals for readability
Added OrangeMonkey support
Moved scheme into new ui obj for improved organization
scheme
Moved logical OR operators in isDarkMode() from ends of lines to beginnings for readability
isDarkMode()
Refactored onRepoPage to check meta tag for reliability (adamlui/github-star-history#45)
onRepoPage
ESCAPED_MSG ↞ [auto-sync from adamlui/userscripts]
Expanded onRepoPage to cover branches, shortened regex
Fixed graph doesn't insert on direct nav from repo to repo (adamlui/github-star-history#38)
Appended semicolon to line before observer IIFE
... to avoid unpredictable behavior
Eliminated dismissKeys init in alert() for conciseness
dismissKeys
alert()
Padded object destructuring for readability
Condensed mutation observer routine
Condensed getUserAndRepoOfCurrentPage()
getUserAndRepoOfCurrentPage()
Loosened comparison operators for smaller filesize
Fix repository URL regex
Fix SonarCloud comments
Merge pull request #20 from ramikg/fix-repository-url-regex
Fix repository URL regex ("trailing slash" bug)
Added space
Promisified GM.xmlHttpRequest() in insertStarHistory() to support VM (adamlui/userscripts#74)
GM.xmlHttpRequest()
insertStarHistory()
Further reduced potential for backtracking in config.updateURL regex
config.updateURL
Eliminated potential for polynomial backtracking in regex
... by increasing specificity of capturing group
Updated regex to exclude query params in GitHub URL extraction
Replaced all .appendChild()'s w/ .append()'s to shorten codebase
.appendChild()
.append()
Added sytem/browser user scheme preference to isDarkMode()
Eliminated .innerHTML dependency, re-ordered routine
.innerHTML
Added config.appName
config.appName
Shortened attribute arg name
attribute
Shortened element arg
element
Removed () around unmodded args in arrow functions
()
Loosened equality comparisons
Updated download/update URLs ↞ [auto-sync from adamlui/userscripts]
Replaced .match() w/ faster method
.match()
Added download/update URL metas, updated config.updateURL ↞ [auto-sync from adamlui/userscripts]
Updated // @version to 2023.9.30.2
// @version
2023.9.30.2
Updated alert() + About modal
Removed semicolons, added whitespace
Added transition fx to alert(), combined const inits
Moved #star-history check later to allow for load
#star-history
Tampilkan semua versi skrip