Gold Holk

Results 87 comments of Gold Holk

我是認為 js runtime 中物件就是有一個 `__proto__` 屬性, 在查詢屬性時就會一路用 proto 往上找。 函數可以當作建構函數,只是方便我們建立同類的物件; 並在建構物件時,把 proto 指向建構式的 prototype 屬性。 這些都只是包裝。 Object 與 Object.prototype 沒什麼特殊意義, 他只是提供了一些物件常用的方法, 而那些方法其實都能自己 patch 出來。 所以你大可自己寫一個 MyObject 建構式, 在 MyObject.prototype 上也可以自幹出...

how about inspect the working directory of the shell? it is exposed in `/proc/$PID/cwd`, but it will not work with tmux or gnu screen.

The code snippet to debug: ``` jsb browser.storage.onChanged.addListener(tri.watchConfigChange=(change=>{const diff=change["userconfig"];if(!diff)return;const conf=diff.newValue;function mainMapPollute(conf){return conf.exmaps?.[""]||conf.vmaps?.f||conf.inputmaps?.[""]||conf.videomaps?.f}if(mainMapPollute(conf)){js(`alert('inherit map polluted')`)}if(mainMapPollute(tri.config.DEFAULTS)){js(`alert('default map polluted')`)}else if(Object.values(conf.subconfigs).some(o=>o.nmaps&&Object.keys(o.nmaps).length>10)){js(`alert('subconfig polluted')`)}})) " to remove jsb browser.storage.onChanged.removeListener(tri.watchConfigChange) ``` A signed alpha build of this...

I am working on branch [urlparent-ignore-more](https://github.com/GHolk/tridactyl/tree/urlparent-ignore-more) ([compare](https://github.com/GHolk/tridactyl/compare/master...urlparent-ignore-more)). I plan to use `urlparentignorefragment` `urlparentignoresearch` and `urlparentignoreindexhtml`, (Its name is a little long. lol) and I will replace `getUrlParent(url, trailingSlash, count =...

How about use the `promise.catch()` in js context? E.g: ``` js tab_helper('false', 'true', 'https://web.whatsapp.com/').catch(e => tabopen('https://web.whatsapp.com')) ```

Nice command! Maybe you can close the issue and share it on wiki?

Hey @glacambre, I am modifying your `FindHighlight` class in `src/content/finding.ts` to support converting a highlight into a selection (#4373). I am not sure why you define a private property `node`...

Thank. The commit 3ee801de14270958d1d8ec66b18059a1c4e63a72 should close #4373.