Skip to content

Instantly share code, notes, and snippets.

@maimainoue
Created August 26, 2015 20:34
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 maimainoue/0f528fc088dd3b9d8699 to your computer and use it in GitHub Desktop.
Save maimainoue/0f528fc088dd3b9d8699 to your computer and use it in GitHub Desktop.
goo mail ヘッダ部分削除2
// メアドの行を削除
var skin_spacing_app_row = document.evaluate('//td[@id=\'skin_spacing_app_row\']'
, document.body, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( skin_spacing_app_row != null ) {
skin_spacing_app_row.parentNode.removeChild(skin_spacing_app_row);
}
// DwtCalendar
var skin_tr_tree_footer = document.evaluate('//tr[@id=\'skin_tr_tree_footer\']'
, document.body, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( skin_tr_tree_footer != null ) {
skin_tr_tree_footer.parentNode.removeChild(skin_tr_tree_footer);
}
var DwtCalendar = document.evaluate('/div[@id=\'DWT38\']'
, document.body, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( DwtCalendar != null ) {
DwtCalendar.parentNode.removeChild(DwtCalendar);
}
// skin_tr_search
var skin_tr_search = document.evaluate('//tr[@id=\'skin_tr_search\']'
, document.body, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( skin_tr_search != null ) {
skin_tr_search.parentNode.removeChild(skin_tr_search);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment