User:Bibipi/Search tool

From Incel Wiki
Jump to navigation Jump to search

Copy & paste the source below to a .html file and then open it in a browser. It allows to search for mentions of the wiki on Reddit, 4chan, Google, Google Scholar and Twitter. Control-click to open the searches in new tab, as always.

Source

<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': [360, 'year'] };

function getDate(t) {
  var date = new Date();
  return new Date(date.getTime() - (days[t][0] * 24 * 60 * 60 * 1000));
}

function yymmdd(t) {
  date = getDate(t);
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getFullYear();
  return '' + y + '-' + (m <= 9 ? '0' + m : m) + '-' + (d <= 9 ? '0' + d : d);
}

function timestamp(t) {
	date = getDate(t);
	return Math.floor(date / 1000);
}

urls = [
  ["Reddit", timestamp, "https://redditsearch.io/?term=incels.wiki&dataviz=false&aggs=false&subreddits=&searchtype=comments&search=true&size=1000&start=%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"],
  ["4chan", yymmdd, "https://archive.4plebs.org/_/search/text/incels.wiki/start/%s/"]
];

urls.forEach(url => {
  for (var day in days){
    document.write(`<a href="${url[2].replace('%s', url[1](day))}">${url[0]} past ${days[day][1]}</a><br />`);
  }
  document.write(`<br />`);
});

</script></head><body>
<a href="https://scholar.google.com/scholar?scisbd=2&q=incels.wiki&hl=en&as_sdt=0,5">Google Scholar</a><br /><br />
<a href="https://fstdt.com/new?q=incels.wiki">Fstdt</a>
</body></html>