11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CSSを全部切るブックマークレット

Posted at
(function(a,b,i){a=document.querySelectorAll('[rel="stylesheet"],style');for(i=0;i<a.length;i++){b=a[i];b.parentNode.removeChild(b)}a=document.querySelectorAll('[style]');for(i=0;i<a.length;i++){a[i].removeAttribute('style')}})();void 0

探せばどこかにあるだろうし自分でもどこかで書いた記憶があるけれど、今さっき書いたのでage。

  1. 外部CSS読み込みの<link>と埋め込みCSSの<style>を削除
  2. 個別指定のstyle属性を持つ要素からそれを削除

削除するので復元は出来ません。(リロードしてね。)

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?