-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmark-visited-links.js
More file actions
38 lines (31 loc) · 898 Bytes
/
mark-visited-links.js
File metadata and controls
38 lines (31 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Bookmarkletify at
* https://alanhogan.github.io/bookmarkleter/
*/
var version = '1.2';
var name = 'com.alanhogan.bookmarklets.mark-visited.' + version;
var extant = document.querySelector('style[data-via-bookmarklet="'+name+'"]');
if (extant !== null) {
console.log(`Bookmarklet (${name}): Already ran on page`);
}
var css = `
a:link{
text-shadow: 0 0.06em 0.3em rgba(100%, 100%, 100%, 1),
-1px 1px 1px rgba(100%, 100%, 100%, 1),
1px 1px 1px rgba(104%, 100%, 100%, 1),
-1px -1px 1px rgba(100%, 100%, 100%, 1),
1px -1px 1px rgba(100%, 100%, 100%, 1) !important;
}
a:link,
a:link * {
color: rgb(5%, 27%, 74%) !important;
}
a:visited,
a:visited * {
color: rgb(60%, 2%, 53%) !important;
}
`;
var styleElem = document.createElement('style');
styleElem.setAttribute('data-via-bookmarklet', name);
styleElem.innerHTML = css;
document.head.appendChild(styleElem);