Wiki Home

List New Updates

Find Page

Back To
The Web Site

Back To
The Journal



Wiki: Book Marklets

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Toolbox</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"> <meta http-equiv="expires" content="0"> <link href="toolbox.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <h1>Web Production Toolbox</h1> <div class="column"> <h2>Internal Links</h2> <p><a href="../redmine/">Redmine</a></p> <p><a href="http://portal/">Sharepoint</a></p> <p><a href="db/index.htm">Database Schema</a></p> <p><a href="siteLibrary/index.html">siteLibrary.js</a></p> <h2>Converters</h2> <p><a href="siteLibrary/jexter.html">HTML to JavaScript</a></p> <p><a href="texter.html">HTML to Text</a> (Unfinished)</p> <h2>Generators</h2> <p><a href="googlecal.html">Google Calendar Event</a></p> <h2>External Links</h2> <p><a href="http://word2cleanhtml.com/">word2cleanhtml.com</a></p> <p><a href="http://www.textfixer.com/html/csv-convert-table.php">Quick .csv/.tab to HTML Table</a></p> </div> <div class="column"> <h2>Bookmarklets</h2> <p>Instructions: Drag the links below to your bookmarks/favorites bar.</p> <span class="source">(<a href="http://www.phpied.com/form-auto-fill-bookmarklet/">source</a>, <a href="javascript:window.alert('Removed the con ... <p><b>Fast Form Fill:</b> <a href="javascript:auto={names:'Lorem|ipsum|dolo ...

<p><span class="source">(<a href="http://www.benjaminkeen.com/open-source-projects/smaller-projects/form-filler-bookmarklet/">source</a>)</span> <b>Fast Form Fill Creator:</b> <a href="javascript:var%20fz=new%20Array();var%20 ... ">FFF Creator</a></p>

<p><span class="source">(<a href="http://www.bookmarklets.com">source</a>)</span> <b>Up 1 Level:</b> <a href="javascript:void(location.href=location.h ... ">../</a></p>

<p><span class="source">(<a href="https://www.squarefree.com/bookmarklets/misc.html">source</a>)</span> <b>Increment URL:</b> <a href="javascript:(function(){var%20e,s;IB=1;fu ...

<hr> <h2>Code Samples</h2> <p>Replace page content with Lorem Ipsum (only on Stage) (Requires jQuery)</p> <textarea cols="80" rows="24">// Wait for it $( document ).ready(function() { // Courtesey of Lipsum.com var strLipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris commodo, mi vitae semper tristique, nisl tortor rutrum neque, nec laoreet enim velit nec orci. Vivamus dapibus diam nec tempor sagittis. Suspendisse ut metus erat. Praesent gravida nibh ac scelerisque viverra. Aliquam rhoncus nulla vel odio mattis laoreet. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas quis vestibulum erat. Ut tempor, velit nec euismod porta, nulla massa bibendum turpis, nec eleifend libero leo at urna. Maecenas et aliquam tellus, ut gravida risus. Proin porta molestie tortor. Vivamus at felis lacus. Duis in posuere purus. Cras eu accumsan sapien. Donec venenatis pharetra dignissim. Proin euismod hendrerit enim eu elementum. "; // Only do this on the Staging Site if(window.location.href.indexOf("registrationpreview") > -1) { // Get a bunch of tags that contain content var nodeList = document.querySelectorAll('.content li, .content p, .content td, .content th, .content h1, .content h2, .content h3, .content h4'); // Insert the same number of lipsum string as HTML Markup Characters ("&lt;span>&lt;b>Foobar" = "Lorem ipsum dolor") for (var i = 0; i < nodeList.length; i++) { // Only do this if there aren't any images that are going to get hit. if(strToTranslate.indexOf("<img") <= -1 ) { nodeList[i].innerHTML = strLipsum.substring(0, strToTranslate.length); } } } }); </textarea> </div> </div> </body> </html>

-- Last edited December 22, 2014
- Click any question mark to add a new page.

Search on: Book Marklets





Notes Mode Ghia Mac Mail Up Home