-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarklets.html
17 lines (13 loc) · 939 Bytes
/
bookmarklets.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bookmarklets</title>
</head>
<body>
<h1>Bookmarklets</h1>
<div>
<a href="javascript:(function zapFonts(){const newFont=prompt('Font','Open Sans').trim();const xzCss='@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/'+newFont.toLocaleLowerCase().replace(' ','-')+'.min.css");';const gFontsCss='@import url("https://fonts.googleapis.com/css?family='+newFont.replace(' ','+')+'&display=swap");';const newCss=xzCss+gFontsCss+'*{font-family:'+newFont+'!important}code,pre,tt{font-family:monospace!important;}';const a=document.createElement('link');a.rel='stylesheet';a.href='data:text/css,'+encodeURI(newCss);document.getElementsByTagName('head')[0].appendChild(a);})();">zap fonts</a>: Change fonts using XZ Fonts/Google Fonts/local fonts
</div>
</body>