Last active
June 20, 2017 16:43
-
-
Save jianjieluo/6a02c8fd5c043257deef252ccd6173bb to your computer and use it in GitHub Desktop.
Tested on the TamperMonkey. Some scripts for better study efficiency
This file contains hidden or 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 CSDN Focus on the blog | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description 清空csdn中烦人的弹窗广告,专注于博客本身,学习知识才是学生的要务 | |
// @author longjj | |
// @match http://blog.csdn.net/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
var css = 'body *{visibility:hidden}#article_content,#article_content *{visibility:visible}#article_content{position:absolute;left:0;top:0;background-color:#fff;padding:40px}', | |
head = document.head || document.getElementsByTagName('head')[0], | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
if (style.styleSheet){ | |
style.styleSheet.cssText = css; | |
} else { | |
style.appendChild(document.createTextNode(css)); | |
} | |
head.appendChild(style); | |
})(); |
This file contains hidden or 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 Really want to watch movie? | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author longjj | |
// @match *://*.iqiyi.com/* | |
// @match *://*.youku.com/* | |
// @match *://*.le.com/* | |
// @match *://*.letv.com/* | |
// @match *://v.qq.com/* | |
// @match *://*.tudou.com/* | |
// @match *://*.mgtv.com/* | |
// @match *://film.sohu.com/* | |
// @match *://tv.sohu.com/* | |
// @match *://*.acfun.cn/v/* | |
// @match *://*.bilibili.com/* | |
// @match *://vip.1905.com/play/* | |
// @match *://vip.pptv.com/show/* | |
// @match *://v.yinyuetai.com/video/* | |
// @match *://v.yinyuetai.com/playlist/* | |
// @match *://*.fun.tv/vplay/* | |
// @match *://*.wasu.cn/Play/show/* | |
// @exclude *://*.bilibili.com/blackboard/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
var css = 'body *{visibility:hidden}', | |
head = document.head || document.getElementsByTagName('head')[0], | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
if (style.styleSheet){ | |
style.styleSheet.cssText = css; | |
} else { | |
style.appendChild(document.createTextNode(css)); | |
} | |
head.appendChild(style); | |
var str = "期末将近,你确定自己要去看这些东西吗?想一下其他还在奋斗的同学,想一下冼庭锋,想一下6月26日的考试,你的毛概还没有背,你的绩点还是那么低,你还想保研,还想科研,你的成绩真的够了么?细细想一下,细细忍一忍,你不是还想给她一种安全感么?那你自己就要先靠谱起来不是么?早点睡觉,早点复习,不要考前再熬夜啦,不想学习的时候就换一个科目,不要自己找接口啦"; | |
function firm() { | |
//利用对话框返回的值 (true 或者 false) | |
if (confirm(str)) { | |
alert("加油,好样的,想想自己的未来,想想给她的保障,你一定可以坚持过去的。"); | |
} | |
else { | |
alert("太失望了,说真的,睡觉吧,睡觉吧,洗澡吧,整理内务吧,未来的你会感谢现在的自己的。"); | |
} | |
} | |
firm(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment