Skip to content
Make the JavaScript console available on mobile devices.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
README.zh-CN.md
README.zh-TW.md
demo.css
demo.js
index.html
mobsole.js

README.md

mobsole

Make the JavaScript console available on mobile devices.

简体中文 繁體中文


Demo: https://shangzhenyang.github.io/mobsole/


Add this line to your HTML file to enable Mobsole:

<script src="https://cdn.jsdelivr.net/gh/shangzhenyang/mobsole/mobsole.min.js"></script>

mobsole.init() //or location.search="mobsole=true"

Initialize Mobsole.

Add error handling.

Replace console.clear with mobsole.clear.

Replace console.log with mobsole.log.


mobsole.clear()

Clear the console.


mobsole.log("string")

Output a message.


mobsole.enabled

Return a boolean value that indicates whether Mobsole is enabled.


mobsole.onload

The function that will be executed after Mobsole is loaded.

You can change its value.


mobsole.ver

Return a string value that shows the current version number of Mobsole.

You can’t perform that action at this time.