Load a modal window from a bookmarklet (like the Amazon wishlist bookmarklet)

后端 未结 4 1106
后悔当初
后悔当初 2021-02-02 02:59

I am using a bookmarklet to load an html page which all works great, but, doesn\'t look so hot due to browsers generally being ugly around the outside!

Is there a way t

4条回答
  •  囚心锁ツ
    2021-02-02 03:23

    javascript:(function()%20{if(typeof%20jQuery=='undefined'){var%20jqit=document.createElement('script');jqit.type='text/javascript';jqit.src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';document.getElementsByTagName('head')[0].appendChild(jqit);}%20_my_script=document.createElement('script');_my_script.type='text/javascript';_my_script.src='http://font-friend.googlecode.com/svn/trunk/font-friend.js';document.getElementsByTagName('head')[0].appendChild(_my_script);})();
    

    That is the code for the "font-friend" bookmarklet, which creates a popup on a given site. You could just alter the code references to your individual needs, but should give a starting point.

    here is the link to it http://somadesign.ca/projects/fontfriend/

提交回复
热议问题