Question: While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).

For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I want that site to think I am using 1024x728px** but still be able to browse in full screen mode.

One of my guessess is I need to override js variables screen.width and screen.height somehow (or get rid of js completely but the particular site won't work with js disabled), but how? And would that be enough?

**It's for anonymous purposes** I hope I don't need to explain in detail. I need to look as one device even though I am accessing the site from various devices (Tor browser not an option - changes IP). The browser I'm using is firefox 30.0 and it runs on VPS (Xubuntu 14.04) I'm connecting to remotely.

This thread ([Spoof JS Objects](https://stackoverflow.com/questions/6713434/spoof-js-objects)) brought me close but not quite enough, it remains unanswered. I've struggeled upon this question for quite a long time so any recommedation is highly appreciated!

Answer: 
There are quite a few solutions available for this. In no particular order:

**Free or Open Source**

1. [Google Custom Search Engine](https://www.google.com/cse/)
2. [Tapir](http://tapirgo.com/) - hosted service that indexes pages on your RSS feed.
3. [Tipue](http://www.tipue.com/search/) - self hosted javaScript plugin, well documented, includes options for pinned search results.
4. [lunr.js](http://lunrjs.com/) - javaScript library.
5. [phinde](https://github.com/cweiske/phinde) - self hosted php and elasticsearch based search engine

See also <http://indieweb.org/search#Software>

**Subscription (aka paid) Services:**

5. [Google Site Search](https://www.google.com/work/search/products/gss.html)
6. [Swiftype](https://swiftype.com/) - offers a free plan for personal sites/blogs.
7. [Algolia](http://www.algolia.com/)
8. [Amazon Cloud Search](http://aws.amazon.com/cloudsearch/)
If your site is well index by Google a quick and ready solution is use [Google CSE](http://google.com/cse).

Other than that for a static website with hard coded html pages and directory containing images; yes it is possible to create search mechanism. But trust me it is more hectic and resource consuming then creating a dynamic website.

Using PHP to search in directories and within files will be very inefficient. Instead of providing complicated PHP workarounds I would suggest go for a dynamic CMS driven website.