[英]Is there a way to automatically convert a Greasemonkey script into a bookmarklet?
據我所知,沒有“自動”方式來實現這一點,但手動完成應該不會太難。
如果腳本不依賴於GreaseMonkey API,那么它應該像復制n'粘貼一樣簡單,也許通過一些縮小來將它全部放在一行上。
你可能也希望將它全部包裝在以下代碼中:
javascript: (function(){ /* Your code here */ })();
此外,請注意限制(您不能擁有無限長的書簽): https : //www.squarefree.com/bookmarklets/limits.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.