Many-a-times, we want to prevent the screen from getting locked, especially in case of Safari when you are reading a webpage. Unfortunately, there is no built in settings to prevent that from happening. However, there is a tweak available in Cydia that disables the slide to unlock thing of the lock screen.
After applying tweak, you will no longer have to enter passcode or pending messages. Keep in mind that it will not install any icon on the home screen. You can instead install SBsettings to toggle its functionality. To download this tweak, search for “nolockscreen” in Cydia.
To jailbreak, follow the guides given on the right sidebar.