"use strict"; const React = require("react"); const url = require("url"); function NoticeBox({ children, siteName }) { return (
This is a mobile proxy. It is intended to visit {siteName} on devices that would otherwise not correctly display the site. {children}
); } module.exports = { port: 3000, hosts: { "awesomedude.cryto.net": { prefix: () => ( ), filters: [{ matchPath: "/", mapUrl: "http://www.awesomedude.com/", mapContent: ($) => $("#container").html() }, { mapUrl: ({path}) => url.resolve("http://www.awesomedude.com/", path), mapContent: ($) => $("body").html() }] }, "castleroland.cryto.net": { prefix: () => ( Please direct all your feedback to CastleRoland.net directly! ), filters: [{ matchPath: "/", mapUrl: "https://castleroland.net/stories-categories/", mapContent: ($) => $("section.home_about").html() }, { mapUrl: ({path}) => url.resolve("https://www.castleroland.net/", path), mapContent: ($) => $("section.home_about").html() }] }, "iomfats.cryto.net": { prefix: () => ( Please direct all your feedback to the friendly guy over at IOMfAtS! ), filters: [{ matchPath: "/", mapUrl: "http://iomfats.org/storyshelf/", mapContent: ($) => $("div#homelinks").html() }, { mapUrl: ({path}) => url.resolve("http://iomfats.org/", path), mapContent: ($) => $("div#content").html() }] } } };