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
// From CC Code | |
if(document.getElementsByClassName('d_post_content')[0]){ | |
var d=/#(CC_Cipher|youtube|utb|acfun|bilibili|tucao|catfun|soundcloud|xiami|moefm)#/, | |
t1=new Date().getTime(), | |
list=[], | |
xpath = document.evaluate( | |
'//cc//text()', //XPath表达式:选择所有文本元素(text node) | |
document,//document.body, //筛选环境 | |
null, //指定命名空间,不用管它 | |
XPathResult.ORDERED_NODE_ITERATOR_TYPE, //被匹配的元素按出现顺序排列 |
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 Baidu Zhidao Thread Notification | |
// @version 1.1 | |
// @description 在贴吧对来自百度知道的贴子进行提醒。 | |
// @match http://tieba.baidu.com/p/* | |
// @match http://tieba.baidu.com/f?*z=* | |
// @include http://tieba.baidu.com/p/* | |
// @include http://tieba.baidu.com/f?*z=* | |
// @author 864907600cc | |
// @grant none |
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 Tieba Block | |
// @version 0.2 | |
// @description Tieba Block | |
// @match http://tieba.baidu.com/* | |
// @include http://tieba.baidu.com/* | |
// @author 864907600cc | |
// @icon http://1.gravatar.com/avatar/147834caf9ccb0a66b2505c753747867 | |
// @run-at document-start | |
// @grant GM_registerMenuCommand |
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 115 Online Player | |
// @version 1.1.1 | |
// @description Play videos from 115 online | |
// @match http://*.115.com/* | |
// @match http://*.115.com/* | |
// @author 8qwe24657913 | 864907600cc | |
// @run-at document-end | |
// @grant none | |
// @updateURL http://ext.ccloli.com/temporary/115-online-player.user.js |
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
// BaiduMsgBackup by ccloli | |
// Tieba@864907600cc | |
// GitHub@ccloli | |
// License: GPLv3 | |
(function(){ | |
// This script using JSZip & FileSaver.js | |
// ==========---------- JSZip Begin ----------========== // | |
/*! |
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 tiebaAllsign | |
// @description 贴吧集中签到 | |
// @include http://www.baidu.com/ | |
// @include https://www.baidu.com/ | |
// @include http://www.baidu.com/?vit=1 | |
// @include http://www.baidu.com/index.php?tn=baiduhome_pg | |
// @include http://tieba.baidu.com/f?kw=* | |
// @include http://tieba.baidu.com/f?ie=gbk&kw=* | |
// @include http://tieba.baidu.com/f?ie=utf-8&kw=* |
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
(function(){ | |
var user = /*sessionStorage.getItem('himg-user') ? JSON.parse(sessionStorage.getItem('himg-user')).data : */[]; | |
var frame = document.createElement('div'); | |
var elem = document.getElementsByClassName('l_post'); | |
var xhr = new XMLHttpRequest(); | |
var page = (PageData && PageData.pager && PageData.pager.cur_page) || 1; | |
var totalPage = (PageData && PageData.pager && PageData.pager.total_page) || 1; | |
xhr.onload = function(){ | |
frame.innerHTML = xhr.responseText; | |
totalPage = xhr.responseText.split('"total_page":')[1].split('}')[0].split(',')[0] - 0; |
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
var originalXMLHttpRequest = XMLHttpRequest; | |
var fakeXMLHttpRequest = function(){ | |
var __this__ = this; | |
var _this = new originalXMLHttpRequest(); | |
var _this_proto = _this.constructor.prototype; | |
Object.keys(originalXMLHttpRequest).forEach(function(elem){ | |
if (typeof originalXMLHttpRequest[elem] === 'function') { | |
__this__[elem] = function(){ | |
_this[elem].apply(_this, arguments); |
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
/* | |
* GM_download polyfill | |
* | |
* @description A polyfill to make your userscript supports GM_download | |
* @author ccloli | |
* @version 1.0 | |
*/ | |
// to use this polyfill, you must add "@grant GM_xmlhttpRequest" at userscript metadata block |
OlderNewer