diff --git a/test/expected/test1.bookmarklet.js b/test/expected/test1.bookmarklet.js index bbeb729..836de8c 100644 --- a/test/expected/test1.bookmarklet.js +++ b/test/expected/test1.bookmarklet.js @@ -1 +1 @@ -javascript:(function()%7B%22use%20strict%22%3Bvar%20link%3Ddocument.createElement(%22link%22)%3Blink.rel%3D%22stylesheet%22%2Clink.href%3D%22data%3Atext%2Fcss%2Cimaginary%257Bfont-family%253A%2520%2522ok%2522%257D%22%2Cdocument.body.appendChild(link)%3B%22use%20strict%22%3Bfunction%20callback()%7Bvar%20e%3DjQuery.noConflict(!0)%2Ca%3De(%22p%22).size()%2Ct%3De(%22div%22).size()%2Cs%3De(%22%3Cimaginary%3E%22).appendTo(%22body%22)%2Cn%3D%22ok%22%3D%3Ds.css(%22font-family%22)%3Bs.remove()%2Calert(%22p%20tags%3A%20%22%2Ba%2B%22%5Cndiv%20tags%3A%20%22%2Bt%2B%22%5CnDid%20the%20test%20element%20get%20styled%3F%20%22%2B(n%3F%22Of%20course!%22%3A%22Nope.%22))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.addEventListener%3Fs.addEventListener(%22load%22%2Ccallback%2C!1)%3As.readyState%26%26(s.onreadystatechange%3Dcallback)%2Cs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.9.1%2Fjquery.min.js%22%2Cdocument.body.appendChild(s)%3B%7D)() \ No newline at end of file +javascript:(function()%7Bvar%20link%3Ddocument.createElement(%22link%22)%3Blink.rel%3D%22stylesheet%22%2Clink.href%3D%22data%3Atext%2Fcss%2Cimaginary%257Bfont-family%253A%2520%2522ok%2522%257D%22%2Cdocument.body.appendChild(link)%3Bfunction%20callback()%7Bvar%20e%3DjQuery.noConflict(!0)%2Ca%3De(%22p%22).size()%2Ct%3De(%22div%22).size()%2Cs%3De(%22%3Cimaginary%3E%22).appendTo(%22body%22)%2Cn%3D%22ok%22%3D%3Ds.css(%22font-family%22)%3Bs.remove()%2Calert(%22p%20tags%3A%20%22%2Ba%2B%22%5Cndiv%20tags%3A%20%22%2Bt%2B%22%5CnDid%20the%20test%20element%20get%20styled%3F%20%22%2B(n%3F%22Of%20course!%22%3A%22Nope.%22))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.addEventListener%3Fs.addEventListener(%22load%22%2Ccallback%2C!1)%3As.readyState%26%26(s.onreadystatechange%3Dcallback)%2Cs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.9.1%2Fjquery.min.js%22%2Cdocument.body.appendChild(s)%3B%7D)() \ No newline at end of file diff --git a/test/expected/test2.bookmarklet.js b/test/expected/test2.bookmarklet.js index 4aedaf1..a9ca38f 100644 --- a/test/expected/test2.bookmarklet.js +++ b/test/expected/test2.bookmarklet.js @@ -1 +1 @@ -javascript:(function()%7B%22use%20strict%22%3Bif(!document.getElementById(%22bookmarklet__style_d2037dd%22))%7Bvar%20link%3Ddocument.createElement(%22link%22)%3Blink.id%3D%22bookmarklet__style_d2037dd%22%2Clink.rel%3D%22stylesheet%22%2Clink.href%3D%22data%3Atext%2Fcss%2Cimaginary%257Bfont-family%253A%2520%2522ok%2522%257D%22%2Cdocument.body.appendChild(link)%7D%22use%20strict%22%3Bfunction%20callback()%7Bvar%20e%3DjQuery.noConflict(!0)%2Ca%3De(%22p%22).size()%2Ct%3De(%22div%22).size()%2Cs%3De(%22%3Cimaginary%3E%22).appendTo(%22body%22)%2Cn%3D%22ok%22%3D%3D%3Ds.css(%22font-family%22)%3Bs.remove()%3Balert(%22p%20tags%3A%20%22%2Ba%2B%22%5Cndiv%20tags%3A%20%22%2Bt%2B%22%5CnDid%20the%20test%20element%20get%20styled%3F%20%22%2B(n%3F%22Of%20course!%22%3A%22Nope.%22))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.addEventListener%3Fs.addEventListener(%22load%22%2Ccallback%2C!1)%3As.readyState%26%26(s.onreadystatechange%3Dcallback)%2Cs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.9.1%2Fjquery.min.js%22%2Cdocument.body.appendChild(s)%3B%7D)() \ No newline at end of file +javascript:(function()%7Bif(!document.getElementById(%22bookmarklet__style_d2037dd%22))%7Bvar%20link%3Ddocument.createElement(%22link%22)%3Blink.id%3D%22bookmarklet__style_d2037dd%22%2Clink.rel%3D%22stylesheet%22%2Clink.href%3D%22data%3Atext%2Fcss%2Cimaginary%257Bfont-family%253A%2520%2522ok%2522%257D%22%2Cdocument.body.appendChild(link)%7Dfunction%20callback()%7Bconst%20e%3DjQuery.noConflict(!0)%2Ca%3De(%22p%22).size()%2Ct%3De(%22div%22).size()%2Cs%3De(%22%3Cimaginary%3E%22).appendTo(%22body%22)%2Cn%3D%22ok%22%3D%3D%3Ds.css(%22font-family%22)%3Bs.remove()%3Balert(%22p%20tags%3A%20%22%2Ba%2B%22%5Cndiv%20tags%3A%20%22%2Bt%2B%22%5CnDid%20the%20test%20element%20get%20styled%3F%20%22%2B(n%3F%22Of%20course!%22%3A%22Nope.%22))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.addEventListener%3Fs.addEventListener(%22load%22%2Ccallback%2C!1)%3As.readyState%26%26(s.onreadystatechange%3Dcallback)%2Cs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.9.1%2Fjquery.min.js%22%2Cdocument.body.appendChild(s)%3B%7D)() \ No newline at end of file