-
Notifications
You must be signed in to change notification settings - Fork 4
/
bookmarklets.html
119 lines (103 loc) · 14.6 KB
/
bookmarklets.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>508 Bookmarklets</TITLE>
<style>
html, body, div, span, applet, object, iframe,
p, blockquote, pre,abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd,/* ol,*/ ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0.8em;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
/***********General*************************/
body {
height: 100%;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.4em;
margin:0 auto;
width:90%;
color:#303030;
word-wrap: break-word;
}
/********************General Headers*****************/
h1, h2, h3, h4, h5, h6 {font-family: Arial, Helvetica, sans-serif;}
h1 {
font-size:2em;
font-weight:600;
color:#004380;
}
h2 {
font-size: 1.8em;
font-weight: 600;
margin-top:1.3em;
color:#004380;
}
h3 {
font-size:1.2em;
font-weight: 600;
margin-top:1.5em;
margin-bottom: 0;
margin-bottom: 1.3em;
color: #004080;
}
/**Testing font icon****/
[data-icon]:before {
font-family: icons; /* BYO icon font, mapped smartly */
content: attr(data-icon);
}
/****************General Links***********************/
a:link {
color: #004380;
text-decoration:underline;
}
a:visited {
color: #004380;
text-decoration:none;
}
a:active,a:hover {
color: #1F60BF;
text-decoration:underline;
}
</style>
</head>
<body>
<H3>My Accessibility Bookmarklets List</H3>
<h4>On Kengdoj GitHub</h4>
<ul>
<!-- <li>OLD: <A HREF="javascript:(function(){var tags=document.getElementsByTagName('*');var element;for(var i=0;i<tags.length;i++){element=tags[i];if(element.currentStyle){if(element.currentStyle['backgroundImage']!=='none')element.style.outline='2px solid #f00';}else if(window.getComputedStyle){if(document.defaultView.getComputedStyle(element,null).getPropertyValue('background-image')!=='none')element.style.outline='2px solid #f00';}}})();">Outline CSS Background Images_KE</A></li> -->
<li>updated: <A HREF="javascript:(function(){HideCSSImages=document.createElement('script');HideCSSImages.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/hide_outline_css_images.js');document.body.appendChild(HideCSSImages)})();">Outline and Hide CSS background images_KE</A></li>
<li>updated: <a href="javascript:(function(){CSSInsContent=document.createElement('script');CSSInsContent.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/css_insertedcontent.js');document.body.appendChild(CSSInsContent)})();">CSS inserted content KE</a></li>
<li>updated: <a href="javascript:(function(){AbsPosScript=document.createElement('script');AbsPosScript.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/css_abs_pos.js');document.body.appendChild(AbsPosScript)})();">CSS absolute position KE</a></li>
<!-- <li>OLD: <A HREF="javascript:(function(){var sheets=document.styleSheets;var pseudoClasses=[],i=0,j=0;for(i=0;i<sheets.length;i++){try{var rules=sheets[i].cssRules;for(j=0;j<rules.length;j++){if(rules[j].selectorText.indexOf(':before')!=-1||rules[j].selectorText.indexOf(':after')!=-1){pseudoClasses.push(rules[j].selectorText);}}}catch(ex){}}var classes=[];var classesLength;if(pseudoClasses.length>0){pseudoClasses=pseudoClasses.join(',').split(',');for(i=0;i<pseudoClasses.length;i++){var colonPos=pseudoClasses[i].indexOf(':');if(colonPos!=-1){classes.push(pseudoClasses[i].substring(0,colonPos));}}}classesLength=classes.length;if(classes.length>0){alert('The list of '+classesLength+' pseudo-elements with :before or :after are: '+classes+'.\n\nKeep Going!!');}else{alert('There is no CSS content.');return;}var eachClass,i;var eachClassBefore,eachClassAfter;for(i=0;i<classes.length;i++){eachClass=classes[i];eachClassBefore=eachClass.concat("::before");eachClassAfter=eachClass.concat("::after");document.styleSheets[0].addRule(eachClassBefore,'background-color: orange');document.styleSheets[0].addRule(eachClassAfter,'background-color: yellow');}alert("CSS content will be highlighted. \n\nOrange highlight on BEFORE content. \nYellow highlight on AFTER content.");})();">Highlight CSS content_KE</A></li> -->
<!-- <li>OLD: <A HREF="javascript:for(l=0;l<document.all.length;l++){if(document.all[l].tagName=='A'){with(document.all[l].style){if(backgroundColor=='lime'){void(backgroundColor=document.bgColor)}else{void(backgroundColor='lime')}}}}">Show links_KE</A></li> -->
<li>updated: <a href="javascript:(function(){ShowLinks=document.createElement('script');ShowLinks.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/show_links.js');document.body.appendChild(ShowLinks)})();">Show links_KE</A></li>
<!-- <li>OLD: <A HREF="javascript:(function(){alert("The page title is: "+document.title);})();">Page Title_KE</A></li> -->
<li>updated: <a href="javascript:(function(){PageTitle=document.createElement('script');PageTitle.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/page_title.js');document.body.appendChild(PageTitle)})();">Page Title_KE</A></li>
<!-- <li>OLD: <a href="javascript:(function(){var sheet=document.createElement('style');sheet.innerHTML='i, .fa, .glyphicon, .material-icons, [data-icon] { background-color: lime; }';document.body.appendChild(sheet);})();">Highlight font icons KE</a></li> -->
<li>updated: <a href="javascript:(function(){IconFonts=document.createElement('script');IconFonts.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/icon_fonts.js');document.body.appendChild(IconFonts)})();">Highlight font icons KE</a></li>
<li>updated: <a href="javascript:(function(){FlashRecScript=document.createElement('script');FlashRecScript.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/flash_rectc.js');document.body.appendChild(FlashRecScript)})();">Flash rectangle KE</a></li>
<li>updated: <a href="javascript:(function(){Flash3Hz=document.createElement('script');Flash3Hz.setAttribute('src','https://kengdoj.github.io/new-bookmarklets/bookmarklet_js/flasher3hz.js');document.body.appendChild(Flash3Hz)})();">Flasher 3Hz_KE</a></li>
</ul>
<h4>Others</h4>
<ul>
<li><A HREF="javascript:window.open('https://validator.w3.org/check?uri='+encodeURIComponent(window.location));void%200">Validate This Page In W3</A></li>
<li><A href="https://developer.paciellogroup.com/blog/2012/02/wcag-2-0-parsing-error-bookmarklet/" target="_blank">Paciello Group's WCAG Parsing error bookmarklet</a> for use with <a href="https://validator.w3.org/" target="_blank">W3C Markup Validation Service</a></li>
<li><A HREF="javascript:(function()%7Bvar iElementsRemoved%2C iElementCounter%2C objHead%3Bvar objContainer%2C arElement%2C arAxis%2C objText%2C objContent%2C objItem%2C objCSS%3Bvar objTable%2C strSummary%2C strHeaders%2C strScope%2C strAbbr%2C strAxis%2C objRedundant%2C objHeader%3Bvar iTableCounter%2C arHeader%2C strOutput%3Bif %28%21document%2EgetElementById%28%27JuicysStudioStyleSheet%27%29%29%7B objHead %3D document%2EgetElementsByTagName%28%27head%27%29%3B objCSS %3D objHead%5B0%5D%2EappendChild%28document%2EcreateElement%28%27link%27%29%29%3B objCSS%2Eid %3D %27JuicysStudioStyleSheet%27%3B objCSS%2Erel %3D %27stylesheet%27%3B objCSS%2Ehref %3D %27http%3A%2F%2Fjuicystudio%2Ecom%2Fservices%2Fcss%2Ftableinspector%2Ecss%27%3B objCSS%2Etype %3D %27text%2Fcss%27%3B objTable %3D document%2EgetElementsByTagName%28%27table%27%29%3B for%28iTableCounter%3D0%3B iTableCounter<objTable%2Elength%3B iTableCounter%2B%2B%29 %7B strSummary %3D objTable%5BiTableCounter%5D%2EgetAttribute%28%27summary%27%29%3B if %28strSummary%29 %7B objContainer %3D document%2EcreateElement%28%27div%27%29%3B objContainer%2EclassName %3D %27juicystudiohighlightmeta%27%3B arElement %3D document%2EcreateElement%28%27strong%27%29%3B objText %3D document%2EcreateTextNode%28%27Summary%3A %27 %2B strSummary%29%3B arElement%2EappendChild%28objText%29%3B objContainer%2EappendChild%28arElement%29%3B try %7B objTable%5BiTableCounter%5D%2EparentNode%2EinsertBefore%28objContainer%2C objTable%5BiTableCounter%5D%29%3B %7D catch %28err%29 %7B document%2Ebody%2EinsertBefore%28objContainer%2C objTable%5BiTableCounter%5D%29%3B %7D %7D arElement %3D objTable%5BiTableCounter%5D%2EgetElementsByTagName%28%27%2A%27%29%3B for %28iElementCounter%3D0%3B iElementCounter<arElement%2Elength%3B iElementCounter%2B%2B%29 %7B if %28arElement%5BiElementCounter%5D%2EtagName%2EtoLowerCase%28%29 %3D%3D %27td%27 %7C%7C arElement%5BiElementCounter%5D%2EtagName%2EtoLowerCase%28%29 %3D%3D %27th%27%29 %7B strHeaders %3D arElement%5BiElementCounter%5D%2EgetAttribute%28%27headers%27%29%3B if %28strHeaders%29 %7B objContainer %3D document%2EcreateElement%28%27div%27%29%3B objContainer%2EclassName %3D %27juicystudiohighlightmeta%27%3B objContent %3D document%2EcreateElement%28%27strong%27%29%3B objText %3D document%2EcreateTextNode%28%27Headers%27%29%3B objContent%2EappendChild%28objText%29%3B objContainer%2EappendChild%28objContent%29%3B objContent %3D document%2EcreateElement%28%27ul%27%29%3B arHeader %3D strHeaders%2Esplit%28%2F%5Cs%2F%29%3B for %28var i%3D0%3B i< arHeader%2Elength%3B i%2B%2B%29 %7B objHeader %3D document%2EgetElementById%28arHeader%5Bi%5D%29%3B strOutput %3D %27%27%3B serialiseNode%28objHeader%29%3B objItem %3D document%2EcreateElement%28%27li%27%29%3B objText %3D document%2EcreateTextNode%28strOutput%29%3B objItem%2EappendChild%28objText%29%3B objContent%2EappendChild%28objItem%29%3B %7D objContainer%2EappendChild%28objContent%29%3B arElement%5BiElementCounter%5D%2EappendChild%28objContainer%29%3B %7D strScope %3D arElement%5BiElementCounter%5D%2EgetAttribute%28%27scope%27%29%3B if %28strScope%29 %7B objContainer %3D document%2EcreateElement%28%27div%27%29%3B objContainer%2EclassName %3D %27juicystudiohighlightmeta%27%3B objContent %3D document%2EcreateElement%28%27strong%27%29%3B if %28strScope%2EtoLowerCase%28%29 %3D%3D %27col%27%29 %7B strScope %3D %27column%27%3B %7D else if %28strScope%2EtoLowerCase%28%29 %3D%3D %27colgroup%27%29 %7B strScope %3D %27column group%27%3B %7D else if %28strScope%2EtoLowerCase%28%29 %3D%3D %27rowgroup%27%29 %7B strScope %3D %27row group%27%3B %7D objText %3D document%2EcreateTextNode%28%27Heading for this %27 %2B strScope%29%3B objContent%2EappendChild%28objText%29%3B objContainer%2EappendChild%28objContent%29%3B arElement%5BiElementCounter%5D%2EappendChild%28objContainer%29%3B %7D strAbbr %3D arElement%5BiElementCounter%5D%2EgetAttribute%28%27abbr%27%29%3B if %28strAbbr%29 %7B objContainer %3D document%2EcreateElement%28%27div%27%29%3B objContainer%2EclassName %3D %27juicystudiohighlightmeta%27%3B objContent %3D document%2EcreateElement%28%27strong%27%29%3B objText %3D document%2EcreateTextNode%28%27Abbreviation%3A %27 %2B strAbbr%29%3B objContent%2EappendChild%28objText%29%3B objContainer%2EappendChild%28objContent%29%3B arElement%5BiElementCounter%5D%2EappendChild%28objContainer%29%3B %7D strAxis %3D arElement%5BiElementCounter%5D%2EgetAttribute%28%27axis%27%29%3B if %28strAxis%29 %7B objContainer %3D document%2EcreateElement%28%27div%27%29%3B objContainer%2EclassName %3D %27juicystudiohighlightmeta%27%3B objContent %3D document%2EcreateElement%28%27strong%27%29%3B objText %3D document%2EcreateTextNode%28%27Conceptual Axis%27%29%3B objContent%2EappendChild%28objText%29%3B objContainer%2EappendChild%28objContent%29%3B objContent %3D document%2EcreateElement%28%27ul%27%29%3B objContainer%2EappendChild%28objContent%29%3B arAxis %3D strAxis%2Esplit%28%27%2C%27%29%3B for %28var iAxis%3D0%3B iAxis<arAxis%2Elength%3B iAxis%2B%2B%29 %7B objText %3D arAxis%5BiAxis%5D%3B objContent %3D document%2EcreateElement%28%27li%27%29%3B objText %3D document%2EcreateTextNode%28objText%29%3B objContent%2EappendChild%28objText%29%3B objContainer%2EappendChild%28objContent%29%3B %7D arElement%5BiElementCounter%5D%2EappendChild%28objContainer%29%3B %7D %7D %7D %7D%7Delse %7B do %7B iElementsRemoved %3D 0%3B objRedundant %3D document%2EgetElementsByTagName%28%27div%27%29%3B for %28iElementCounter%3D0%3B iElementCounter<objRedundant%2Elength%3B iElementCounter%2B%2B%29 %7B if %28objRedundant%5BiElementCounter%5D%2EclassName %3D%3D %27juicystudiohighlightmeta%27%29 %7B objRedundant%5BiElementCounter%5D%2EparentNode%2EremoveChild%28objRedundant%5BiElementCounter%5D%29%3B iElementsRemoved%2B%2B%3B %7D %7D %7D while %28iElementsRemoved > 0%29%3B objHead %3D document%2EgetElementsByTagName%28%27head%27%29%3B if %28objHead%29 %7B objHead%5B0%5D%2EremoveChild%28document%2EgetElementById%28%27JuicysStudioStyleSheet%27%29%29%3B %7D%7Dfunction serialiseNode%28objNode%29%7B var strClass %3D %27%27%3B if %28objNode%2EnodeType %3D%3D 3 %26%26 objNode%2Edata%29 %7B strOutput %2B%3D objNode%2Edata%3B %7D else if %28objNode%2EnodeType %3D%3D 1 %26%26 objNode%2EgetAttribute%28%27alt%27%29%29 %7B strOutput %2B%3D objNode%2EgetAttribute%28%27alt%27%29%3B %7D objNode %3D objNode%2EfirstChild%3B if %28objNode %26%26 objNode%2EclassName%29 %7B strClass %3D objNode%2EclassName%3B %7D while %28objNode %26%26 strClass %21%3D %27juicystudiohighlightmeta%27%29 %7B serialiseNode%28objNode%29%3B objNode %3D objNode%2EnextSibling%3B %7D%7D%7D)()">Juicy Table Inspector</A></li>
<li><A HREF="javascript:(function()%7Bvar objScript %3D document%2EgetElementById%28%27jstableinspector%27%29%3Bif %28objScript%29%7B objScript%2EparentNode%2EremoveChild%28objScript%29%3B%7Dvar objHead %3D document%2EgetElementsByTagName%28%27head%27%29%3Bvar objTableScript %3D objHead%5B0%5D%2EappendChild%28document%2EcreateElement%28%27script%27%29%29%3BobjTableScript%2EsetAttribute%28%27type%27%2C %27text%2Fjavascript%27%29%3BobjTableScript%2EsetAttribute%28%27src%27%2C %27http%3A%2F%2Fjuicystudio%2Ecom%2Fservices%2Fcti%2Ejs%27%29%3BobjTableScript%2EsetAttribute%28%27id%27%2C %27jstableinspector%27%29%3B%7D)()">Juicy IE Table Inspector</A></li>
</ul>
<h3>Flashing Test Page</h3>
<p>Use this page to <a href="rgbcompute_d.html" target="_blank">check for flashing red and general flashes</a>.</p>
<!-- <h2> <span data-icon="⇝"></span> Stats</h2> -->
</body>
</html>