Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Created June 30, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micromaomao/3f29a2e9f2cbd12daff8 to your computer and use it in GitHub Desktop.
Save micromaomao/3f29a2e9f2cbd12daff8 to your computer and use it in GitHub Desktop.
New iciba
// ==UserScript==
// @name ICIBA better
// @match http://www.iciba.com/*
// @grant none
// ==/UserScript==
$(document).ready(function(){
$('.iciba_common_top, .header, .pendant, #ezfm, #side_bar').remove();
$('.dict_nav').children().not('ul').remove();
$('.dict_nav').children('ul').children('li').eq(4).remove();
$('.baidu, .vRecomm, .search_foot').remove();
$('.dict_nav_hover').removeClass('dict_nav_hover');
$('.hp_footer, .wd_genre').remove();
$('.net_paraphrase').remove();
$('.group_prons').eq(2).remove();
$('.correcting').remove();
$('.new_word, .usually, .recite').remove();
$('#word_name_h1').css({
textAlign: "center", width: "100%", fontSize: "300%", lineHeight: "1.2", color: "rgb(0, 96, 181)", fontWeight: "lighter", borderBottom: "rgb(123, 193, 255) 1px solid", marginBottom: "8px"
});
$('.dictbar').css({
textAlign: "center", margin: "0 auto 0 auto"
});
$('#layout').css({
margin: "40px auto 20px auto",
backgroundColor: "#fff",
boxShadow: "0 0 300px rgba(0, 0, 0, 0.53)"
});
$('body').css({
backgroundColor: "rgb(221, 233, 255)"
});
$('#center').css({
width: "100%"
});
$('#main_box, #dict_main, .dictbar').css({
width: "auto"
});
$('.eg *, .eg').css({
float: "none"
});
$('#dict_main').css({
textAlign: "center"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment