Bookmarklet Help: Creating a Find/Replace Bookmarklet

后端 未结 3 1282
无人及你
无人及你 2021-01-07 07:11

I\'m trying to slightly modify this so that it prompts for the text to search for, followed by the text to replace with, and when all done processing, show a dialog box lett

3条回答
  •  囚心锁ツ
    2021-01-07 07:37

    This worked for me:

    javascript:function%20htmlreplace(a,b,element){if(!element)element=document.body;var%20nodes=element.childNodes;for(var%20n=0;n

    All I did was replace the old and new with a prompt() function. good bookmarklet.

提交回复
热议问题