goobai+
// ==UserScript==
// @name goobai+
// @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';
function googleIt() {
var searchText = document.querySelector('#kw').value;
location.href = getGoogleUrl(searchText);
}
function getGoogleUrl(searchText) {
return 'https://www.google.com/search?q=' + searchText;
}
// Your code here...
$('#su').after('<input type="button" id="google" value="Google一下" class="btn self-btn bg s_btn" style="background-color:grey;" />');
$("#google").click(function() {
googleIt();
});
})();
1.0 版。自己码的代码,安装后手动输入用户名和密码!!
// ==UserScript==
// @name 汕大上网直通车自动登陆
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 这是吾本虚无开发的汕大自动登录插件,请登录http://a.stu.edu.cn/
// @author [email protected]
// @match http://a.stu.edu.cn/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementById("password_name").value='用户名';//请手动输入!
document.getElementById("password_pwd").value='密码';
window.setTimeout(function() {var LoginButton = $('<input class="btnStyle" id="password_submitBtn" onclick="onPwdLogin();" type="button" value="登录 ( Login )">');
LoginButton.click();
}, 100);
// Your code here...
})();