发现 GM_addStyle 函数不能用了,从写加载css函数。 剩下找个定位 添加内容 就很简单了。

// ==UserScript==
// @name helloWorld
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.baidu.com/
// @grant none
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript== $(document).ready(function(){
// 在这里写你的代码... // console.info('form',$("form"))
let m = `<div style="color:#fff;position: absolute;bottom: -30px;">
<a class="myLink" href="http://www.baidu.com/" target="_blank">aaa</a>
</div>`
$(m).appendTo("#s_form_wrapper") }); (function() {
'use strict';
// Your code here...
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
} addGlobalStyle('a.myLink, a.myLink:hover { color:#fff; }'); })();

最新文章

  1. 顶点缓存对象(VBO)
  2. 我的ORM之二--添加
  3. UML - 类图
  4. SQL批量更新数据库中所有用户数据表中字段类型为tinyint为int
  5. 配置fabric-crashlytics教程
  6. php调试工具总结
  7. (转)Libevent(5)— 连接监听器
  8. stl binary search
  9. java菜鸟篇&lt;一&gt; 对JsonObject 和JsonArray知识点理解
  10. 主函数特别之处:public static void main(String[] args)
  11. 关于用wubi安装Ubuntu,总是提示“没有定义根文件系统”的问题
  12. 電腦清理緩存bat文件源碼
  13. widnow 下配置php开发环境
  14. Y7000安装驱动显卡问题
  15. 使用Mybatis-Generator自动生成Dao、Model、Mapping
  16. python一个简单的打包例子
  17. php 图片添加水印和二维码
  18. java struts2入门学习--OGNL语言常用符号和常用标签学习
  19. HBase 安装设置
  20. 360全景技术支持中心(KRPanoGUI三维全景制作软件)

热门文章

  1. 【hyddd驱动开发学习】DDK与WDK
  2. 任务29:自己动手构建RequestDelegate管道
  3. ccflow_005.请假流程-傻瓜表单-审核组件模式
  4. PaaS服务之路漫谈(二)
  5. Swift异常处理的try?与try!
  6. HDU5145:5145 ( NPY and girls ) (莫队算法+排列组合+逆元)
  7. Codeforces404C【构造】
  8. hdoj1097
  9. linux 问题一 apt-get install 被 lock
  10. Robotframework自动化系列:筛选结果数量统计