Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
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
/* esm.sh - esbuild bundle(@extractus/feed-extractor@7.1.3) es2022 development */
import { hasProperty, isArray, isObject, isString, stripTags, truncate } from "npm:bellajs@11.2.0";
import { XMLParser } from "npm:fast-xml-parser@4.5.0";
import { decode, encode } from "npm:html-entities@2.5.2";
var isValid = (url = "") => {
try {
const ourl = new URL(url);
return ourl !== null && ourl.protocol.startsWith("http");
} catch {
return false;
}
};
var absolutify = (fullUrl = "", relativeUrl = "") => {
try {
const result = new URL(relativeUrl, fullUrl);
return result.toString();
} catch {
return "";
}
};
var blacklistKeys = [
"CNDID",
"__twitter_impression",
"_hsenc",
"_openstat",
"action_object_map",
"action_ref_map",
"action_type_map",
"amp",
"fb_action_ids",
"fb_action_types",
"fb_ref",
"fb_source",
"fbclid",
"ga_campaign",
"ga_content",
"ga_medium",
"ga_place",
"ga_source",
"ga_term",
"gs_l",
"hmb_campaign",
"hmb_medium",
"hmb_source",
"mbid",
"mc_cid",
"mc_eid",
"mkt_tok",
"referrer",
"spJobID",
"spMailingID",
"spReportId",
"spUserID",
"utm_brand",
"utm_campaign",
"utm_cid",
"utm_content",
"utm_int",
"utm_mailing",
"utm_medium",
"utm_name",
"utm_place",
"utm_pubreferrer",
"utm_reader",
"utm_social",
"utm_source",
"utm_swu",
"utm_term",
"utm_userid",
"utm_viz_id",
"wt_mc_o",
"yclid",
"WT.mc_id",
"WT.mc_ev",
"WT.srch",
"pk_source",
"pk_medium",
"pk_campaign",
];
var purify = (url) => {
try {
const pureUrl = new URL(url);
blacklistKeys.forEach((key) => {
pureUrl.searchParams.delete(key);
});
return pureUrl.toString().replace(pureUrl.hash, "");
} catch {
return null;
}
};
// ../esmd/npm/@extractus/feed-extractor@7.1.3/node_modules/.pnpm/@extractus+feed-extractor@7.1.3/node_modules/@extractus/feed-extractor/src/deno/cross-fetch.js
var cross_fetch_default = fetch;
// ../esmd/npm/@extractus/feed-extractor@7.1.3/node_modules/.pnpm/@extractus+feed-extractor@7.1.3/node_modules/@extractus/feed-extractor/src/utils/retrieve.js
var profetch = async (url, options = {}) => {
const { proxy = {}, signal = null } = options;
const {
September 12, 2024