MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / togglePin

Function togglePin

collect.js:287–294  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

285 }
286
287 function togglePin(url) {
288 const list = getFavorites();
289 const item = list.find(f => f.url === url);
290 if (item) {
291 item.pinned = !item.pinned;
292 setFavorites(list);
293 }
294 }
295
296 function updateFavoriteRemark(url, remark) {
297 const list = getFavorites();

Callers 1

refreshFavoritesDialogFunction · 0.85

Calls 2

getFavoritesFunction · 0.85
setFavoritesFunction · 0.85

Tested by

no test coverage detected