Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I see that you've accepted an answer, and that's perfectly valid and great, but I would like to provide a useful tool I made for myself.</p> <p>It's a bookmarklet generator called <a href="http://zbooks.zzzzbov.com/" rel="nofollow">zbooks</a>.<br> <sub>(Yes it's my website, no I'm not trying to spam you, there are no ads on that page, I gain nothing from you using it)</sub></p> <p>It's jQuery enabled and I think it's simple to use (but I built it, so who knows). If you need an extensive explanation of how to use it, let me know so I can make it better. You can even <a href="http://zbooks.zzzzbov.com/assets/js/zbooks-1.1.js" rel="nofollow">browse over the source</a> if you'd like.</p> <p>The important part is the business logic that gets jQuery on the page:</p> <pre><code>//s used for the Script element var s = document.createElement('script'); //r used for the Ready state var r = false; //set the script to the latest version of jQuery s.setAttribute('src', 'http://code.jquery.com/jquery-latest.min.js'); //set the load/readystate events s.onload = s.onreadystatechange = function() { /** * LOAD/READYSTATE LOGIC * execute if the script hasn't been ready yet and: * - the ready state isn't set * - the ready state is complete * - note: readyState == 'loaded' executes before the script gets called so * we skip this event because it wouldn't have loaded the init event yet. */ if ( !r &amp;&amp; (!this.readyState || this.readyState == 'complete' ) ) { //set the ready flag to true to keep the event from initializing again r = true; //prevent jQuery conflicts by placing jQuery in the zbooks object window.zbooks = {'jQuery':jQuery.noConflict()}; //make a new zbook window.zbooks[n] = new zbooks(c); } }; //append the jQuery script to the body b.appendChild(s); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload