From d84429c25061639b1e9a07cd56de2696bd074e45 Mon Sep 17 00:00:00 2001 From: Yuxuan He Date: Sun, 4 Sep 2016 11:07:55 +0800 Subject: [PATCH] Remove ads of CMCSA... I have been publishing it for years?! --- content_script/load.js | 8 ++++---- content_script/optimize.js | 27 --------------------------- manifest.json | 2 +- 3 files changed, 5 insertions(+), 32 deletions(-) diff --git a/content_script/load.js b/content_script/load.js index 3d45a54..5fca74a 100755 --- a/content_script/load.js +++ b/content_script/load.js @@ -137,8 +137,11 @@ main(); /* 更新日志(从1.9.5才开始写): + 2.4.1 - 2016/9/4 + 去除了广告。发布到了应用商店。 + 2.4 - 2014/1/27 - tq5124, 更新日志改写在git中 + tq5124, 更新日志改写在git中 2.3.19 - 2013/12/11 优化处理队列,加大间隔,增加错误重试 @@ -279,7 +282,4 @@ main(); 将load.js分解成四个文件,方便管理。 修复算平均分时遇到字母时出错的bug。 增加算平均分全选的功能。 - - - */ \ No newline at end of file diff --git a/content_script/optimize.js b/content_script/optimize.js index 326780f..e8b70d9 100755 --- a/content_script/optimize.js +++ b/content_script/optimize.js @@ -61,29 +61,15 @@ function optimize_sdtleft() */ } -// CMCSA function optimize_flattop_content(){ - if (!inUrl("/edu/include/flattop.htm")) return 0; - if (localStorage["flattop_slide_cmcsa"] === undefined) - localStorage["flattop_slide_cmcsa"] = 1; - if(localStorage["flattop_slide_cmcsa"] == 1){ - var html = '\n\t\n\t\t\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\u6559\u5b66\u4fe1\u606f\u670d\u52a1\u7f51\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\u8fd4\u56de\u9996\u9875   \n\t\t\t\t\t\t\t\t\u6ce8\u9500\u672c\u6b21\u767b\u5f55
\n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n
\n
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\n\n'; - jQuery('html').html(html); - } } function optimize_flattop(){ if (!inUrl("/edu/student/sdtMain.aspx")) return 0; var div_pos = 80; - if (localStorage["flattop_slide_cmcsa"] === undefined) - localStorage["flattop_slide_cmcsa"] = 1; - if(localStorage["flattop_slide_cmcsa"] == 1){ - jQuery("frameset").slice(0,1).attr("rows", "120,*"); - div_pos += 15; - } var optimize_flattop_fixed_div = jQuery('
隐藏/显示推荐
'); jQuery("html").append(optimize_flattop_fixed_div); @@ -95,26 +81,13 @@ function optimize_flattop(){ }); jQuery("#optimize_flattop_fixed_div").click(function(){ - localStorage["flattop_slide_cmcsa"] *= -1; window.location.reload(); }); } function flattopToggle(){ theta = 0; - if(localStorage["flattop_slide_cmcsa"] == 1) - { - jQuery("frameset").slice(0,1).attr("rows", "120,*"); - var html = '\n\t\n\t\t\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\u6559\u5b66\u4fe1\u606f\u670d\u52a1\u7f51\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\u8fd4\u56de\u9996\u9875   \n\t\t\t\t\t\t\t\t\u6ce8\u9500\u672c\u6b21\u767b\u5f55
\n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n
\n
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\n\n'; - jQuery('html').html(html); - }else{ - jQuery("frameset").slice(0,1).attr("rows", "105,*"); - var html = '\n\n\n\t\n\t\t\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\u6559\u5b66\u4fe1\u606f\u670d\u52a1\u7f51\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\u8fd4\u56de\u9996\u9875   \n\t\t\t\t\t\t\t\t\u6ce8\u9500\u672c\u6b21\u767b\u5f55
\n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\n\n\n'; - jQuery('html').html(html); - } - } -// END OF CMCSA /* function optimize_flattop(){ if (!inUrl("/edu/student/sdtMain.aspx")) diff --git a/manifest.json b/manifest.json index 925f82d..830ee8d 100755 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "update_url":"http://clients2.google.com/service/update2/crx", "name": "Electsys++ 交大选课插件", "author": "laohyx", - "version": "2.4", + "version": "2.4.1", "icons": { "48": "logo_new.png", "128": "logo_new_128.png"