What i want is for the following bookmarklet, to be automatically ran, not prompt the user (using www.google.com, and the current webpage), and display the left window as rar left as i could get it (so the webpage is unchanged, but dragbar functionality is added to google:
so anyway, i got to messing around with the script, here being my version(Working Bookmark):Code:javascript:A14nH=location.href;L3f7=prompt('Choose%20File%201',A14nH);R1Gh7=prompt('Choose%20File%202',L3f7);if(L3f7&&R1Gh7){Fr4Q='<frameset%20cols=\'*,*\'>\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>';with(document){write(Fr4Q);void(close())}}else{void(null)}
which does everything I need, except run automatically. I had figured all I would have to do at this point, is download a pre-existing userscript, remove all the code below its commented tags, change the comment tags from the sites its suposed to run, to the sites I want it to run, and paste my code below (without the "javascript:" part).Code:javascript:R1Gh7=location.href;L3f7= "http://www.google.com/";if(R1Gh7&&L3f7){Fr4Q='<frameset%20cols="0%,100%">\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>';with(document){write(Fr4Q);void(close())}}else{void(null)}
It didnt work, so i tried with that, then i tried adding: location.href = "myscript", which also didnt work. Trying this, and about 5 other things i found on google, and spending over an hour.. I decided it best to just post it here..
I am Ok with you doing the adjustments for it to work properly, but I would apreciate if you atleast leave comments, walking me through what you did (so i can do it if i ever need)
Or you could point me in the right direction, since im probably just missing a line of script..
Broken Source Code:
Update2: still tried a bit to get it to work as a userscript, also decided im gonna have to figure out how to paste the url of the right(main) tab, into the urlbar, if possibleCode:// ==UserScript== // @name Google Duel View // @namespace http://www.5isharing.com/ // @version 1.7.3 // @description Allow For Duel View on googles homepage, and Igoogle // @include http://www.google.com/* // @copyright 2010+, Bloody_T // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // ==/UserScript== location.href = "javascript:R1Gh7=location.href;L3f7= "http://www.google.com/";if(R1Gh7&&L3f7){Fr4Q='<frameset%20cols="0%,100%">\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>';with(document){write(Fr4Q);void(close())}}else{void(null)}";


LinkBack URL
About LinkBacks



Reply With Quote
BETTER GMAIL for Google Chrome 