簡體   English   中英

有沒有辦法自動將Greasemonkey腳本轉換為書簽?

[英]Is there a way to automatically convert a Greasemonkey script into a bookmarklet?

對於那些不知道書簽是什么的人: http//en.wikipedia.org/wiki/Bookmarklet

據我所知,沒有“自動”方式來實現這一點,但手動完成應該不會太難。

如果腳本依賴於GreaseMonkey API,那么它應該像復制n'粘貼一樣簡單,也許通過一些縮小來將它全部放在一行上。

你可能也希望將它全部包裝在以下代碼中:

javascript: (function(){ /* Your code here */ })();

此外,請注意限制(您不能擁有無限長的書簽): https//www.squarefree.com/bookmarklets/limits.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM