News for hackers. Stuff that matters.
Re:Show HN: Tricking the user to access history using CSS an... by mikelat on Monday June 09, 2014 @05:01PM (#7870476)
That's impressive.

Honestly modern browsers should just start ignoring off-domain :visted styles.

Re:Show HN: Tricking the user to access history using CSS an... by spb on Monday June 09, 2014 @08:41PM (#7871313)
That would break aggregator sites like HN and Reddit (although really they should really be maintaining the visit history themselves, as they do with Reddit Gold users).
Re:Show HN: Tricking the user to access history using CSS an... by endianswap on Monday June 09, 2014 @09:05PM (#7871393)
I tried to use the history tracking that comes with Reddit Gold for about a week and it was virtually useless. After browsing on my phone and two computers only like 1 in 10 of the links would correctly show up as purple on the other devices (even just PC to PC it didn't work).

Edit: I should mention I bought Reddit Gold just for this feature, so I was optimistic that it'd work.

Re:Show HN: Tricking the user to access history using CSS an... by tokenizerrr on Tuesday June 10, 2014 @12:19AM (#7871810)
As an alternative, you can set reddit to hide links that you have voted upon which does not require a reddit gold account.
Re:Show HN: Tricking the user to access history using CSS an... by mschuster91 on Tuesday June 10, 2014 @12:48AM (#7871887)
> although really they should really be maintaining the visit history themselves, as they do with Reddit Gold users

Another HTTP request between me and the content I want. Another 1s of RTT (UMTS link)... No.

Re:Show HN: Tricking the user to access history using CSS an... by DavidSJ on Tuesday June 10, 2014 @01:47AM (#7871998)
This can be done in parallel with JS, without using an HTTP redirect.
Re:Show HN: Tricking the user to access history using CSS an... by mschuster91 on Tuesday June 10, 2014 @11:49AM (#7873244)
Nope, if you fire the AJAX request directly on the onclick event, chances are high it will not be submitted/processed before the browser navigates away...
Re:Show HN: Tricking the user to access history using CSS an... by adrr on Monday June 09, 2014 @09:04PM (#7871387)
You could to do opt in permissions similar to the permission request for location information or for chrome desktop notifications.
Re:Show HN: Tricking the user to access history using CSS an... by gohrt on Tuesday June 10, 2014 @01:40AM (#7871984)
There has to be a better way to indicate :visited, using browser chrome.

Perhaps only showing the visited info on mouseover (as a cursor style),

or limiting it to cases where the style is a color-change that is not nearly the same as the background color, in a DOM element that is front-most z-index... (but this probably can't be computed reliably...)

or just defaulting to disabling, until the user approves the domain or path (NoScript-esque)