Fossil SCM

Fix the anti-robot logic so that auto-hyperlink-mouseover actually works and so that the "mouseover" setting sent down to javascript is determined only by the setting on the Access page.

drh 2019-05-14 11:17 trunk
Commit 37f23f3764976a362ecc483ba9b35e76dec5e8c0a0a0377acee08da1f0211cf0
1 file changed +1 -4
+1 -4
--- src/style.c
+++ src/style.c
@@ -573,14 +573,11 @@
573573
*/
574574
static void style_load_all_js_files(void){
575575
int i;
576576
if( needHrefJs ){
577577
int nDelay = db_get_int("auto-hyperlink-delay",0);
578
- int bMouseover;
579
- /* Load up the page data */
580
- bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0))
581
- && db_get_boolean("auto-hyperlink-mouseover",0);
578
+ int bMouseover = db_get_boolean("auto-hyperlink-mouseover",0);
582579
@ <script id='href-data' type='application/json'>\
583580
@ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script>
584581
}
585582
@ <script nonce="%h(style_nonce())">
586583
if( needHrefJs ){
587584
--- src/style.c
+++ src/style.c
@@ -573,14 +573,11 @@
573 */
574 static void style_load_all_js_files(void){
575 int i;
576 if( needHrefJs ){
577 int nDelay = db_get_int("auto-hyperlink-delay",0);
578 int bMouseover;
579 /* Load up the page data */
580 bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0))
581 && db_get_boolean("auto-hyperlink-mouseover",0);
582 @ <script id='href-data' type='application/json'>\
583 @ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script>
584 }
585 @ <script nonce="%h(style_nonce())">
586 if( needHrefJs ){
587
--- src/style.c
+++ src/style.c
@@ -573,14 +573,11 @@
573 */
574 static void style_load_all_js_files(void){
575 int i;
576 if( needHrefJs ){
577 int nDelay = db_get_int("auto-hyperlink-delay",0);
578 int bMouseover = db_get_boolean("auto-hyperlink-mouseover",0);
 
 
 
579 @ <script id='href-data' type='application/json'>\
580 @ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script>
581 }
582 @ <script nonce="%h(style_nonce())">
583 if( needHrefJs ){
584

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button