ウェブページのスタイルを無効化するブックマークレット(仮)

  • /*
     * @title ウェブページのスタイルを無効化するブックマークレット(仮)
     * @description 粗悪品です。
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    
    javascript: (function(){ var newSS, styles='* { margin: 0 !important;padding: 0 !important;float: none !important;position: static !important;width: auto !important;height: auto !important;min-height: 0 !important;min-width: 0 !important;border: none !important;font-size: 16px !important;font-family: sans-serif !important;line-height: 1.4 !important;color: #444 !important;background: #eee none !important;}br+br+br { display: none !important;}a:link { color: blue !important;}a:visited { color: red !important;}a:hover { color: green !important;}'; if(document.createStyleSheet){ document.createStyleSheet("javascript:'"+styles+"'"); }else { newSS=document.createElement('link'); newSS.rel='stylesheet'; newSS.href='data:text/css,'+escape(styles); document.getElementsByTagName("head")[0].appendChild(newSS); } })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/06/30 01:14:45 - 2011-06-30