Trusted, Automoderated users
17,538
edits
No edit summary |
(→Source: fix reddit search) |
||
Line 4: | Line 4: | ||
<pre><nowiki><html><head><title>Wiki news</title><meta charset="UTF-8"><script type="text/javascript"> | <pre><nowiki><html><head><title>Wiki news</title><meta charset="UTF-8"><script type="text/javascript"> | ||
var days = { 'd': [1, 'day'], 'w': [7, 'week'], 'm': [30, 'month'], 'y': [ | var days = { 'd': [1, 'day'], 'w': [7, 'week'], 'm': [30, 'month'], 'y': [365, 'year'] }; | ||
function getDate(t) { | function getDate(t) { | ||
var | var d = new Date(); | ||
d = new Date(d.getTime() - (days[t][0] * 24 * 60 * 60 * 1000)); | |||
d.setMilliseconds(0); | |||
return d; | |||
} | } | ||
Line 20: | Line 22: | ||
function timestamp(t) { | function timestamp(t) { | ||
date = getDate(t); | |||
return Math.floor(date / 1000); | |||
} | } | ||
urls = [ | urls = [ | ||
["Reddit", timestamp, "https://redditsearch.io/?term=incels.wiki&dataviz=false&aggs=false&subreddits=&searchtype=comments&search=true&size=1000&start=%s"], | ["Reddit (Pushshift)", timestamp, "https://redditsearch.io/?term=incels.wiki&dataviz=false&aggs=false&subreddits=&searchtype=comments&search=true&size=1000&start=%s"], | ||
["Reddit (Marsey)", t => getDate(t).toISOString(), "https://search.marsey.cat/#{%22resultSize%22:1000,%22after%22:%22%s%22,%22query%22:%22incels.wiki%22}"], | |||
["Twitter", yymmdd, "https://twitter.com/search?l=&q=incels.wiki%20since%3A%s"], | ["Twitter", yymmdd, "https://twitter.com/search?l=&q=incels.wiki%20since%3A%s"], | ||
["Google", x => x, "https://www.google.com/search?q=%22incels.wiki%22+-site:incels.wiki&tbs=qdr:%s"], | ["Google", x => x, "https://www.google.com/search?q=%22incels.wiki%22+-site:incels.wiki&tbs=qdr:%s"], |