All 140 HTML colors as JSON objects with fields:
- name
- hex
- rgb
- families
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -r72 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dCompressFonts=true -sOutputFile=output.pdf input.pdf
Change -r for the resolution.
Other options for PDFSETTINGS:
tumblr.getCssMap().then(cssMap => { | |
const keys = Object.keys(cssMap); | |
const elements = document.querySelectorAll("[class]"); | |
for (const {classList} of elements) { | |
for (const className of classList) { | |
const mappedClassName = keys.find(key => cssMap[key].includes(className)); | |
if (mappedClassName) classList.add(`tumblr--${mappedClassName}`); | |
} | |
} | |
}); |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall] | |
@="" | |
"MUIVerb"="Windows Firewall" | |
"icon"="%SystemRoot%\\system32\\FirewallControlPanel.dll,0" | |
"subcommands"="" | |
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall\Shell] | |
@="" |
<!-- | |
Note that this is a very rough, incomplete prototype. | |
More info on how to possibly leverage it here: https://github.com/tumblr/docs/issues/49 | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
{MobileAppHeaders} |
npf.js is the main bulk of the code, and it exposes three functions:
Render content returns an object {content, ask}. It returns the ask content separately so it can be
handled spearately by the consuming client. content
is an HTML element, ask
is itself an object
containing content
(an HTML element) and the other properties of the ask layout type
(specifically of interest is the attribution
property).
/* | |
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc> | |
NOTE - 2021-05-24 | |
----------------- | |
The script below isn't the fastest way to copy-and-paste from a protected | |
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from | |
the comments: |