<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Slight modification to bookmarklet]]></title><description><![CDATA[<p dir="auto">This bookmarklet creates a list of all links on a webpage. Would it be possible to modify it so that the links retain their titles?</p>
<p dir="auto">javascript:WN7z=open('','Z6','width=450,height=550,scrollbars,resizable,menubar');DL5e=document.links;with(WN7z.document){write('&lt;base target=_blank&gt;');for(lKi=0;lKi&lt;DL5e.length;lKi++){write(DL5e[lKi].toString().link(DL5e[lKi])+'</p>
<p dir="auto">')};void(close())}</p>
]]></description><link>https://forums.opera.com/topic/2483/slight-modification-to-bookmarklet</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 14:48:59 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/2483.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 May 2014 00:47:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sun, 29 Jun 2014 21:46:37 GMT]]></title><description><![CDATA[<p dir="auto">It's probably possible. You'd have to use some scripting to do whatever's needed to load all comments. Then, you'd have to export the DOM as HTML (to a data URI probably) so that you can save the page in that state. (To be honest though, I personally don't want to take the time to figure it out as I'm not familiar with how youtube loads things at all.)</p>
]]></description><link>https://forums.opera.com/post/43920</link><guid isPermaLink="true">https://forums.opera.com/post/43920</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Sun, 29 Jun 2014 21:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sun, 29 Jun 2014 15:47:54 GMT]]></title><description><![CDATA[<p dir="auto">In regard to the comments on YouTube, when there's a discussion, they're in the form of a drop-down menu that can be expanded or hidden. I noticed that the HTML of the page does not contain any of the hidden text. So, similar to my intitial request, would I be able to go through YouTube comments, expand the discussions I wanted, and then export a frozen version of that?</p>
]]></description><link>https://forums.opera.com/post/43883</link><guid isPermaLink="true">https://forums.opera.com/post/43883</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Sun, 29 Jun 2014 15:47:54 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sat, 14 Jun 2014 03:37:27 GMT]]></title><description><![CDATA[<p dir="auto">Not sure myself.</p>
]]></description><link>https://forums.opera.com/post/42183</link><guid isPermaLink="true">https://forums.opera.com/post/42183</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Sat, 14 Jun 2014 03:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sat, 14 Jun 2014 03:24:30 GMT]]></title><description><![CDATA[<p dir="auto">Forgot to say thanks. It does work.</p>
<p dir="auto">Is there a way to mass-download all of the YouTube video web page (all the web pages linked to in the videos ection of a utube channel)? So that one can have saved copies of all the descriptions. I use Free YouTube Download to mass download utube videos, but it doesn't download <em>the descriptions</em> Also is anyone aware of another way to mass download utube videos? Free YouTube Download is very commercial. I used a different application a few years ago that was plain and nice, but I can't remember it and was not able to find it when searching recently.</p>
]]></description><link>https://forums.opera.com/post/42182</link><guid isPermaLink="true">https://forums.opera.com/post/42182</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Sat, 14 Jun 2014 03:24:30 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sat, 17 May 2014 01:25:12 GMT]]></title><description><![CDATA[<p dir="auto">I just decided to use the data URI way. Try <a href="http://shadow2531.com/js/jsuri.html?source=(function()%20%7B%0D%0A%20%20%20%20var%20links%20%3D%20document.links%3B%0D%0A%20%20%20%20var%20html%20%3D%20%27%3Cbase%20target%3D%22_blank%22%3E%27%3B%0D%0A%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20links.length%3B%20%2B%2Bi)%20%7B%0D%0A%20%20%20%20%20%20%20%20var%20link%20%3D%20links%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20link.style%20%3D%20%27%27%3B%0D%0A%20%20%20%20%20%20%20%20html%20%2B%3D%20link.outerHTML%3B%0D%0A%20%20%20%20%20%20%20%20html%20%2B%3D%20%27%3Cbr%3E%3Cbr%3E%27%3B%0D%0A%20%20%20%20%7D%0D%0A%20%20%20%20var%20uri%20%3D%20%27data%3Atext%2Fhtml%3Bcharset%3D%27%3B%0D%0A%20%20%20%20uri%20%2B%3D%20document.characterSet%3B%0D%0A%20%20%20%20uri%20%2B%3D%20%27%2C%27%3B%0D%0A%20%20%20%20uri%20%2B%3D%20encodeURIComponent(html)%3B%0D%0A%20%20%20%20window.open(uri%2C%20%27Z6%27%2C%20%27width%3D450%2Cheight%3D550%2Cscrollbars%2Cresizable%2Cmenubar%27)%3B%0D%0A%7D)()%3B" target="_blank" rel="noopener noreferrer nofollow ugc">this one</a>. It should allow you to save the page.</p>
]]></description><link>https://forums.opera.com/post/39516</link><guid isPermaLink="true">https://forums.opera.com/post/39516</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Sat, 17 May 2014 01:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Fri, 16 May 2014 22:15:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your commitment. Clever work around. I would have thought of it eventually.</p>
]]></description><link>https://forums.opera.com/post/39485</link><guid isPermaLink="true">https://forums.opera.com/post/39485</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Fri, 16 May 2014 22:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Fri, 16 May 2014 02:54:58 GMT]]></title><description><![CDATA[<p dir="auto">I checked. It appears to be a known problem with Chrome (and therefore Opera). I check for workarounds. (Generating a data URI will probably work, but I'm looking for a better workaround than that.</p>
<p dir="auto">For now though, right-click on the pop-up page that's generated and choose "inspect element. Then, you can ctrl + a the source, paste it into a text editor and save it as an HTML file or whatever.</p>
<p dir="auto">I try <a href="http://shadow2531.com/js/jsuri.html?source=(function()%20%7B%0D%0A%20%20%20%20var%20win%20%3D%20window.open(%27%27%2C%20%27Z6%27%2C%20%27width%3D450%2Cheight%3D550%2Cscrollbars%2Cresizable%2Cmenubar%27)%3B%0D%0A%20%20%20%20var%20links%20%3D%20document.links%3B%0D%0A%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20links.length%3B%20%2B%2Bi)%20%7B%0D%0A%20%20%20%20%20%20%20%20var%20link%20%3D%20links%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20link.style%20%3D%20%27%27%3B%0D%0A%20%20%20%20%20%20%20%20var%20wdoc%20%3D%20win.document%3B%0D%0A%20%20%20%20%20%20%20%20wdoc.body.appendChild(wdoc.importNode(links%5Bi%5D%2C%20true))%3B%0D%0A%20%20%20%20%20%20%20%20wdoc.body.appendChild(wdoc.createElement(%27br%27))%3B%0D%0A%20%20%20%20%20%20%20%20wdoc.body.appendChild(wdoc.createElement(%27br%27))%3B%0D%0A%20%20%20%20%7D%0D%0A%7D)()%3B" target="_blank" rel="noopener noreferrer nofollow ugc">this version</a> and I can't save it either.</p>
]]></description><link>https://forums.opera.com/post/39357</link><guid isPermaLink="true">https://forums.opera.com/post/39357</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Fri, 16 May 2014 02:54:58 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Thu, 15 May 2014 18:28:27 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">The first one in this thread</p>
</blockquote>
<p dir="auto">You're talking about the code blocks here? As in, you want to know exactly what the original bookmarklet you posted is doing?</p>
<p dir="auto">If you right-click on the time for a post, you can copy its link shortcut so you can refer to it so I know exactly which comment you're talking about etc.</p>
<blockquote>
<p dir="auto">But there's an issue.</p>
</blockquote>
<p dir="auto">The code usees document.write like the original. You're technically supposed to call document.open() first, use document.write and then do document.close(). I didn't do that as the original didn't. That could be why the page can't be saved. I can test later to see if that's true. Or, if you're using Opera 12, this problem can be caused by turning the disk cache off.</p>
]]></description><link>https://forums.opera.com/post/39287</link><guid isPermaLink="true">https://forums.opera.com/post/39287</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Thu, 15 May 2014 18:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Thu, 15 May 2014 16:45:12 GMT]]></title><description><![CDATA[<p dir="auto">The first one in this thread.</p>
<p dir="auto">But there's an issue. I primarily wanted this code so that I could save a page containing all of a utube channel's videos. Because YouTube is ridiculous in that it does not seem to let you view all the videos on a channel. In order to view all the videos, you have to click "load more" and scroll down and clikc it again, and again, and again, and again, if you want to show all the videos. I wanted to use this code to save the web page in that state. And it worked...only it literally doesn't save. File -&gt; Save As will save nothing into the folder (no warning message) and believe it or not Printo to PDF doesn't even work!</p>
]]></description><link>https://forums.opera.com/post/39273</link><guid isPermaLink="true">https://forums.opera.com/post/39273</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Thu, 15 May 2014 16:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Wed, 14 May 2014 04:15:20 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I'm not a coder, so I'm wondering about the first box.</p>
</blockquote>
<p dir="auto">You're wondering what the first text field on <a href="http://shadow2531.com/js/jsuri.html" target="_blank" rel="noopener noreferrer nofollow ugc">this page</a> does?</p>
]]></description><link>https://forums.opera.com/post/39013</link><guid isPermaLink="true">https://forums.opera.com/post/39013</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Wed, 14 May 2014 04:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Wed, 14 May 2014 04:04:08 GMT]]></title><description><![CDATA[<p dir="auto">It does work. Thanks a lot! All I did was create a bookmarklet using the second box. I'm not a coder, so I'm wondering about the first box.</p>
]]></description><link>https://forums.opera.com/post/39011</link><guid isPermaLink="true">https://forums.opera.com/post/39011</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Wed, 14 May 2014 04:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Tue, 13 May 2014 00:32:58 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">No, I'm referring to links such as the last word in your post "here." This bookmarklet strips the titles from all the URLs and makes them raw URLs.</p>
</blockquote>
<p dir="auto">O.K. Then, the bookmark I provided should work.</p>
]]></description><link>https://forums.opera.com/post/38859</link><guid isPermaLink="true">https://forums.opera.com/post/38859</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Tue, 13 May 2014 00:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Mon, 12 May 2014 09:11:13 GMT]]></title><description><![CDATA[<p dir="auto">No, I'm referring to links such as the last word in your post "here." This bookmarklet strips the titles from all the URLs and makes them raw URLs.</p>
]]></description><link>https://forums.opera.com/post/38786</link><guid isPermaLink="true">https://forums.opera.com/post/38786</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Mon, 12 May 2014 09:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Mon, 12 May 2014 06:34:34 GMT]]></title><description><![CDATA[<p dir="auto">When you say "titles", are you referring to the title attribute on the element that shows a tooltip of text when you hover over the link or are you referring to the textContent of the link (as in, the text for the link)?</p>
<p dir="auto">The following should keep both the title attribute and the textContent.</p>
<p dir="auto">Here's the JS code:</p>
<pre><code>(function() {
    var win = window.open('', 'Z6', 'width=450,height=550,scrollbars,resizable,menubar');
    win.document.write('base target="_blank"');
    var links = document.links;
    for (var i = 0; i &lt; links.length; ++i) {
        var link = links[i];
        link.style = '';
        win.document.write(link.outerHTML + '
</code></pre>
<p dir="auto">');<br />
}<br />
})();</p>
<p dir="auto">(In the win.document.write, you need to add the &lt; before "base" and the &gt; after the _blank" because of forum bugs. But, the Javascript URI below has them in there.</p>
<p dir="auto">And here's the properly-encoded Javascript URI:</p>
<pre><code>javascript:(function()%20%7B%0D%0A%20%20%20%20var%20win%20%3D%20window.open(''%2C%20'Z6'%2C%20'width%3D450%2Cheight%3D550%2Cscrollbars%2Cresizable%2Cmenubar')%3B%0D%0A%20%20%20%20win.document.write('%3Cbase%20target%3D%22_blank%22%3E')%3B%0D%0A%20%20%20%20var%20links%20%3D%20document.links%3B%0D%0A%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20links.length%3B%20%2B%2Bi)%20%7B%0D%0A%20%20%20%20%20%20%20%20var%20link%20%3D%20links%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20link.style%20%3D%20''%3B%0D%0A%20%20%20%20%20%20%20%20win.document.write(link.outerHTML%20%2B%20'%3Cbr%3E%3Cbr%3E')%3B%0D%0A%20%20%20%20%7D%0D%0A%7D)()%3B
</code></pre>
<p dir="auto">I only tested this in Chrome though.</p>
<p dir="auto">You can play with it <a href="http://shadow2531.com/js/jsuri.html?source=(function()%20%7B%0D%0A%20%20%20%20var%20win%20%3D%20window.open(%27%27%2C%20%27Z6%27%2C%20%27width%3D450%2Cheight%3D550%2Cscrollbars%2Cresizable%2Cmenubar%27)%3B%0D%0A%20%20%20%20win.document.write(%27%3Cbase%20target%3D%22_blank%22%3E%27)%3B%0D%0A%20%20%20%20var%20links%20%3D%20document.links%3B%0D%0A%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20links.length%3B%20%2B%2Bi)%20%7B%0D%0A%20%20%20%20%20%20%20%20var%20link%20%3D%20links%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20link.style%20%3D%20%27%27%3B%0D%0A%20%20%20%20%20%20%20%20win.document.write(link.outerHTML%20%2B%20%27%3Cbr%3E%3Cbr%3E%27)%3B%0D%0A%20%20%20%20%7D%0D%0A%7D)()%3B" target="_blank" rel="noopener noreferrer nofollow ugc">here</a></p>
]]></description><link>https://forums.opera.com/post/38779</link><guid isPermaLink="true">https://forums.opera.com/post/38779</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Mon, 12 May 2014 06:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Mon, 12 May 2014 05:04:44 GMT]]></title><description><![CDATA[<p dir="auto">bump</p>
]]></description><link>https://forums.opera.com/post/38773</link><guid isPermaLink="true">https://forums.opera.com/post/38773</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Mon, 12 May 2014 05:04:44 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sun, 04 May 2014 10:30:35 GMT]]></title><description><![CDATA[<p dir="auto">OK, NOTHING copied in that last attempt.</p>
<p dir="auto">Here: <a href="http://pastebin.ws/1oc6km" target="_blank" rel="noopener noreferrer nofollow ugc">http://pastebin.ws/1oc6km</a></p>
]]></description><link>https://forums.opera.com/post/37681</link><guid isPermaLink="true">https://forums.opera.com/post/37681</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Sun, 04 May 2014 10:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to Slight modification to bookmarklet on Sun, 04 May 2014 10:30:15 GMT]]></title><description><![CDATA[<p dir="auto">The whole thing didn't copy. Here's the rest: &lt;DL5e.length;lKi++){write(DL5e[lKi].toString().link(DL5e[lKi])+'</p>
<p dir="auto">')};void(close())}</p>
]]></description><link>https://forums.opera.com/post/37679</link><guid isPermaLink="true">https://forums.opera.com/post/37679</guid><dc:creator><![CDATA[pa421]]></dc:creator><pubDate>Sun, 04 May 2014 10:30:15 GMT</pubDate></item></channel></rss>