3 ms·
I figured out another way you can hide links as they are clicked. With jQuery override the .click() event of every link on the page. Then, when the link is cli
by readme 14y ago
I figured out another way you can hide links as they are clicked.
With jQuery override the .click() event of every link on the page. Then, when the link is clicked get the URL of the link from the event parameter that is passed to .click(). From that information, you can construct a CSS selector like this one (with jQuery)
$("a[href=\"http://stackoverflow.com/questions/10668292/is-there-a-setting-on-google-analytics-to-suppress-use-of-cookies-for-users-who\] http://stackoverflow.com/questions/10668292/is-there-a-setti...)
Which can then be used to hide the clicked link. The problem now is one of persisting the data between sessions. Your options are localStorage, remote storage, and my suggestion: sqlite in webkit a'la: http://stackoverflow.com/questions/6200976/sqlite-in-chrome http://stackoverflow.com/questions/6200976/sqlite-in-chrome
After you have saved the "read" urls in SQLite, you should be able to hide the surrounding data as well in the other <tr> tag by traversing the DOM with jquery.
I really would love if you did this. Please consider giving it a try.
- readme 14y agoIt looks like I should have done better markdown formatting on my selector example. For clarity: $("a[href=\"http://stackoverflow.com/questions/10668292/is-there-a-setting-on-google-analytics-to-suppress-use-of-cookies-for-users-who\"]")