From 53ec9eb51cfc3b88fc2c1c7678d106040a65250d Mon Sep 17 00:00:00 2001 From: Jan Kolkmeier Date: Tue, 5 May 2009 23:02:08 +0200 Subject: basic linkfollowing --- examples/configs/sampleconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/configs/sampleconfig b/examples/configs/sampleconfig index 0606fd7..a5c8611 100644 --- a/examples/configs/sampleconfig +++ b/examples/configs/sampleconfig @@ -32,9 +32,12 @@ m = forward s = stop r = reload R = reload_ign_cache -f = follow_link_here -F = follow_link_new_tab -w = follow_link_new_window +#Link Following preview... +#These scripts are going to be outsourced in future. +#Hit F to toggle the Hints (now in form of link numbering) +F = script for (var i=0; i < document.links.length; i++) {var uzblid = 'uzbl_link_hint_';var li = document.links[i];var pre = document.getElementById(uzblid+i);if (pre) {li.removeChild(pre);} else {var hint = document.createElement('div');hint.setAttribute('id',uzblid+i);hint.innerHTML = i;hint.style.display='inline';hint.style.lineHeight='90%';hint.style.backgroundColor='red';hint.style.color='white';hint.style.fontSize='small-xx';hint.style.fontWeight='light';hint.style.margin='0px';hint.style.padding='2px';hint.style.position='absolute';hint.style.textDecoration='none';hint.style.left=li.style.left;hint.style.top=li.style.top;li.insertAdjacentElement('afterBegin',hint);}} +#then type f, followed by the link number and RETURN to follow that link +f_ = script window.location = document.links[%s].href + = zoom_in - = zoom_out t = toggle_status -- cgit v1.2.3