Created
January 20, 2018 09:45
-
-
Save Vizards/f133a852eb6b4eea23238d778233d084 to your computer and use it in GitHub Desktop.
[console.re.js.tampermonkey]use console.re.js in tampermonkey #console.re # tampermonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.baidu.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
var consolere = { | |
channel:'bf8e-4fa7-a2dc', | |
api:'https://console.re/connector.js', | |
ready: function(c) {var d=document,s=d.createElement('script'),l;s.src=this.api;s.id='consolerescript';s.setAttribute('data-channel', this.channel);s.onreadystatechange=s.onload=function(){if(!l){c();}l=true;};d.getElementsByTagName('head')[0].appendChild(s);} | |
}; | |
consolere.ready(function() { | |
window.console.re.log('remote log test'); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment