squareup A sleek and modern startpage

我要开发同款
匿名用户2021年12月17日
35阅读
开发技术JavaScript
所属分类Web应用开发、网页组件
授权协议MIT License

作品详情

squareupAsleekandmodernstartpageLiveDemosquareupstartpage

FeaturesResponsiveUIWebSearchSuggestionsMobileSupportThemeSwitcherKeyboardnavigationSearchEngineSelectionAnimatedBackgroundWebMenuwithFuzzySearchVanillaJavascript!Andmanybugs!UsageClonethisrepo.Setitasyourdefaulthomepage.KeybindingsEscape-toggleswebmenuControl+Space-switchessearchengineAlt+Space-switchescolorschemeQuicksearch

r/+subredditnamewillopenthesubredditifvalidorexisting.

r/unixpornr/startpages

w/+searchquerytosearchonwikipedia.

w/linuxw/Javascript

u/+searchquerytosearchforanimage/photoonunsplash.

u/natureu/technology

a/+searchquerytosearchaproductonamazon.

a/intelcelerona/windows10sourcecode

e/+searchquerytosearchaproductonebay.

e/pentium4e/uraniumcore

y/+searchquerytosearchavideoonyoutube.

y/howtobuildanuclearreactory/strangealiensightingsinoregon

n/+comicidtosearcha"comic"onacertain"comic"website.

n/177013

g/+searchquerytosearchaforarepo/userongithub.

g/manilaromeg/squareupg/manilarome/squareupURLRedirects

SearchingavalidURLwillredirectyoutothesaidURL.Notethataprotocol,https://forexample,isrequired.

https://haveibeenpwned.com/queryisvalid,soyouwillberedirectedtohttps://haveibeenpwned.com/.google.comisnotavalidURL,soitwillsearchitonyourdefaultsearchengine.www.duckduckgo.comisalsoinvalidbecauseitdoesn'thaveaprotocol.URLQueryParameters

Youcanalsopassaquerybyusingtheqparameter.Thedefaultsearchenginewillbeused.

manilarome.github.io/squareup?q=howtobuildanuclearreactorathome127.0.0.1?q=howtodownloadmoreRAMingoogleplaystorefile:///PATH/TO/squareup/index.html?q=howtorestoresystem32SettingsandCustomizationCustomizingcolorscheme

Changethecolorschemebyjustclickingabutton!

Dark-Darkcolorscheme.Goodforthenight.Light-Brightcolorscheme.Goodforkillingtheeyes.Auto-Loadacolorschemebasedontime.Editlight/darkmodehoursonjs/config.jsCustomizingpanelbuttons

Toaddmorewebshortcuts/buttonsonthedock,youhavetoeditthepanelSitesarrayinjs/config.js.Makesuretoputaniconwithsvgformatfortheshortcutinassets/webcons/folder.

//ExampleconstpanelSites=[{site:'Reddit',icon:'reddit',url:'https://reddit.com/'},...]Customizingwebmenu

AddmoreitemsorwebshortcutsinthewebmenubyeditingthewebSitesarrayinjs/config.js.Makesuretoputaniconwithsvgformatfortheshortcutinassets/webcons/folder.

//ExampleconstwebSites=[{site:'Reddit',icon:'reddit',url:'https://reddit.com/',category:'social'},...]Customizingquicksearch

AddmorequicksearchshortcutsbyeditingthequickSearchDataobjectinjs/config.js.Makesuretofollowtheformatbelow:

//ExampleconstquickSearchData={'r/':{urlPrefix:'https://reddit.com/r/'},...}Switchdefaultsearchengine

Startpageisthedefaultsearchengine,ifyouwanttochangeit,justclicktheswitcherbuttononthepanel.

Availablesearchengines:

StartpageQwantEcosiaDuckduckgoYahooGoogleBingCustomizingavailablesearchengines

AddmoresearchenginebyeditingthesearchEnginesobjectinjs/config.js.Makesuretofollowtheformatbelow:

//ExampleconstsearchEngines={'duckduckgo':{name:'Duckduckgo',prefix:'https://duckduckgo.com/?q='},...}Changingclockmode

Therearetwoclockmodesavailable-24-hourand12-hour.Switchbetweenclockmodesbyjustclickingontheclock.Simple.

ImportantNoteMakesurethatjavascriptisenabledinyourbrowser!MakesuretowhitelistordisableNoScriptandDarkModeReaderextensionsonthishomepage.Ifyouareexperiencingslowdowns,youcandisabletheanimationsincss/animated-background.css.TestedonlyonFirefoxandGoogleChrome.TODOs

Squareupwillsitbetweenminimalandbloated.TheitemsinthisTODOlistaretheonlyoneI'mplanningtoimplementinthishomepage.

SearchengineswitchingAutosuggestionCategorizedWebMenuIssues?

Feelfreetoopenone!

PR?

Thatwouldbegreat!

Otherworks

Checkmyotherworksrelatedtothisstartpage.

blurredfox-agorgeousandmodernfirefoxCSStheme.the-glorious-startpage-myveryfirststartpage.Kindabloatyandcodeisquitemessybutstillkindaworksandlooksgorgeous.the-glorious-dotfiles-astashofmyconfigurations.
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论