Last active
November 3, 2023 02:43
-
-
Save andresh3/63446c7ce7e65eed0f216888e66ce79f to your computer and use it in GitHub Desktop.
Revisions
-
andresh3 revised this gist
Oct 24, 2023 . 2 changed files with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,4 @@ This version completely strips the page. ```javascript javascript:(function(){var n=document.getElementsByClassName('Box-body')[0].cloneNode(true);document.body.children[0].remove();document.body.appendChild(node);node.style.borderBottom = 'none';})();``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,7 @@ This version leaves some of the header and border-lines. ```javascript javascript:(function(){document.getElementsByClassName('pagehead')[0].remove();document.getElementsByClassName('js-header-wrapper')[0].remove();})(); ``` These bookmarklet's strip down github gist pages so that the content is easily printable. (Both versions published 10/23/23, feel free to redist as you please). They're not perfect and only work for markdown or other gist pages w/ no horizontal scrolling content and will only do _one_ file and not multiple. -
andresh3 revised this gist
Oct 24, 2023 . 2 changed files with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,5 @@ These bookmarklet's strip down github gist pages so that the content is easily p This version completely strips the page. (Both versions published 10/23/23, feel free to redist as you please) ```javascript javascript:(function(){var n=document.getElementsByClassName('Box-body')[0].cloneNode(true);document.body.children[0].remove();document.body.appendChild(node);node.style.borderBottom = 'none';})();``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ This version leaves some of the header and border-lines. ```javascript javascript:(function(){document.getElementsByClassName('pagehead')[0].remove();document.getElementsByClassName('js-header-wrapper')[0].remove();})();``` -
andresh3 created this gist
Oct 24, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ These bookmarklet's strip down github gist pages so that the content is easily printable. This version completely strips the page. (Both versions published 10/23/23, feel free to redist as you please) ```js javascript:(function(){var n=document.getElementsByClassName('Box-body')[0].cloneNode(true);document.body.children[0].remove();document.body.appendChild(node);node.style.borderBottom = 'none';})();``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ This version leaves some of the header and border-lines. ```js javascript:(function(){document.getElementsByClassName('pagehead')[0].remove();document.getElementsByClassName('js-header-wrapper')[0].remove();})();```