// ==UserScript==
// @name V2EX 无刷新加载页面
// @version 0.1
// @description V2EX 无刷新切换页面,跳转页面
// @author You
// @match https://www.v2ex.com/*
// @grant none
// @require https://cdn.bootcdn.net/ajax/libs/instantclick/3.1.0/instantclick.min.js
/* globals jQuery, $, InstantClick,waitForKeyElements */
// ==/UserScript==
(function() {
'use strict';
/* 初始化 InstantClick 插件 */
InstantClick.init();
/* 隐藏 InstantClick 插件的加载进度条 */
var style = document.createElement("style");
style.type = "text/css";
var text = document.createTextNode("#instantclick-bar{display:none;}");
style.appendChild(text);
var head = document.getElementsByTagName("head")[0];
head.appendChild(style);
})();
1
linglin0924 Apr 23, 2022
用上了,不错,感谢楼主
|
2
reorx Apr 23, 2022 via iPhone
InstantClick 大法好
|
3
listenfree Apr 23, 2022
建议加上 v2ex.com 的域名 match ,目前只是 www.v2ex.com
|
4
sudoy Apr 23, 2022
原来油猴脚本通过 require 就可以引入第三方 js 库,get 了新技能了,之前一直都是通过 js 注入到 header 去
|
5
Dotennin Apr 23, 2022
学到了, InstantClick 懒人大法好
|
6
461da73c Apr 23, 2022
Edge 好像不工作。
这行报错: /* globals jQuery, $, InstantClick,waitForKeyElements */ |
7
justin2018 Apr 23, 2022
bootcdn.net 这个最好换一下 他家的 CDN 挂过几次 o(╯□╰)o
|
8
Geraltt Apr 23, 2022
很好用,感谢~
|
9
bo233 Apr 23, 2022 via iPhone
用上了,感谢
|
10
ijrou Apr 23, 2022
用上了。。。
|
11
SunBK201 Apr 23, 2022
搜索貌似失效了
|
12
shalk Apr 23, 2022
还想匹配 v2ex.com/* 怎么改
|
13
goophy Apr 23, 2022
切换 夜间模式 就不行了
|
14
learningman Apr 23, 2022
@SunBK201 确实,搜索被 gank 了
|
15
fpure Apr 23, 2022
InstantClick 有点意思,学到了
|
16
hertzry Apr 23, 2022 via Android
问一下有没有适用于所有网站的无刷新加载插件。
|
19
rioshikelong121 Apr 23, 2022
Cool.
|
20
unco020511 Apr 24, 2022
用上了,感谢
|
21
Bronya Apr 24, 2022
用上了,挺好使,感谢~
|
22
coldmonkeybit Apr 24, 2022
不错不错赞一个
|
23
songjinxin May 9, 2022
不错不错 ! 感谢楼主分享!
|