From 8f5253c07ead58246a04c7e489db6b2aafc9245d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 12 Nov 2013 19:15:45 +0100 Subject: [PATCH] dwb: improved navigation keys (URI number support) --- .config/dwb/default/custom_keys | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/dwb/default/custom_keys b/.config/dwb/default/custom_keys index c3286a05..4c4ced79 100644 --- a/.config/dwb/default/custom_keys +++ b/.config/dwb/default/custom_keys @@ -1,2 +1,2 @@ -]:exja (function(){var e=document.querySelector("[rel='next']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\bnext\b|^>$|^(>>|»)$|^(>|»)|(>|»)$|\bmore\b)/i)>-1){location=e.href; break;}}}})(); -[:exja (function(){var e=document.querySelector("[rel='prev']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\b(prev|previous)\b|^<$|^(<<|«)$|^(<|«)|(<|«)$)/i)>-1){location=e.href;break;}}}})(); +}:exja (function(){var e=document.querySelector("[rel='next']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\bnext\b|^>$|^(>>|»)$|^(>|»)|(>|»)$|\bmore\b)/i)>-1){location=e.href; break;}} location.href=location.href.replace(/(\d+)([^\/\d]*)$/, function(a,b,c){return ++b+c})}})(); +{:exja (function(){var e=document.querySelector("[rel='prev']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\b(prev|previous)\b|^<$|^(<<|«)$|^(<|«)|(<|«)$)/i)>-1){location=e.href;break;}} location.href=location.href.replace(/(\d+)([^\/\d]*)$/, function(a,b,c){return --b+c})}})(); \ No newline at end of file