Greasy Fork is available in English.
將明星曆史圖表添加到 GitHub 存儲庫的側邊欄
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
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()
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]
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
Changed onRepoPage to regex to allow trailing slashes
onRepoPage
Changed hover cursor to crosshair
Added // @grant GM_openInTab ↞ [auto-sync from adamlui/userscripts]
// @grant GM_openInTab
Added Edge compatibility meta ↞ [auto-sync from adamlui/userscripts]
Removed unused config.prefix, added base to parseInt()'s ↞ [auto-sync from adamlui/userscripts]
config.prefix
parseInt()
Added about dialog to menu ↞ [auto-sync from adamlui/userscripts]
Removed line breaks for readability ↞ [auto-sync from adamlui/userscripts]
Added darkmode + Chromium support, re-ordered functions, added meta ↞ [auto-sync from adamlui/userscripts]
Added title tags ↞ [auto-sync from adamlui/userscripts]
GH sync test