A tampermonkey script to hide a page's content
This is just a silly remake of a script I made many years ago, and I tought it would be funny to write it again and explain how to use it.
This script will hide the content of the page you are currently navigating on by hiding the original body and placing another page's content above it.
Note: The resulting page will not be a perfect copy of the captured page, but a very good version of it for most of the time. Sometimes you won't even be able to tell the difference, but other times some elements might appear overlapped, mispositioned, or with a different font. These errors are more likely to occur when the target page (the one being hidden away) has a more strict rule about cross-origin source material.
For whatever reason you want other people to think you are navigating on a
certain page A, when you actually are navigating on a certaing page B.
The usage is pretty straightforward, just follow the steps below.
- First and foremost: Install the
Tampermonkeyextension on your navigator. - Now, in this repository, go to the
srcfolder, select the file calledscript.js, click it, and then click onraw;
- Select the whole script and copy it to the clipboard;
- Click on the
Tampermonkeyicon at the top right of your browser; - Click the
+ Create a new scriptbutton;
- A window will appear with an example script, erase it and paste what you just copied;
- Hit
Ctrl + S; - Make sure Tampermonkey is turned on and the script is running.
Capture page A and hide page B by putting page A's content above it!
First, it's necessary to capture a page that will serve as a façade. To do this, go to any website and wait the page to finish loading. After that, follow those steps:
- Hold
Ctrl + Shift; - Press
Left clickanywhere on the page while holding the keys from step 1. - A window will prompt to define a password. The password inserted will be
used further to go back to where you were in the target page before hiding
it. This field can be left blank if you wish by just press either
OKorCancel.
Done! Now the current page is copied. Let's move to the hiding process.
To hide a page, it is necessary to have captured a page to work as disguise. If a page wasn't captured, this script will simply make the screen blank and put a fake loader.
To proceed, do the following:
- Hold
Ctrl + Alt; - Press
Left clickanywhere on the page while holding the keys from step 1.
Done! The current page should look like the captured page now!
To go back to the original page after a hide operation was successfully, executed follow the steps below:
- Hold
Shift + Alt; - Press
Left clickanywhere on the page while holding the keys from step 1. - A window will appear prompting an unlock password, the same that was
defined during the
Capturingprocess. Enter the defined password, or leave it blank for no password, and pressOK.
Done! The original page should appear again just the way you left it!
Example of a page hide without capturing another page.
Example of a page hide using another page as disguise.
This script won't make changes to the url at the web browser url bar since
this is not possible, which means that it won't hide porn only hides so
much of the page.