Created
February 16, 2021 09:43
-
-
Save crok/05efa0d117b720db4cf094c61ace5b6a to your computer and use it in GitHub Desktop.
YoutubeDownloadBookmark_v5.txt credits to 1DM Telegram group @android_1dm
This file contains 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 characters
{"k_uuid":"e14c8374-b8db-4d5b-a51b-44e4fdc691fd","title":"00. YouTube downloader","url":"javascript:(function() {\n var domain = window.location.hostname.toLowerCase();\n if(domain == 'youtube.com' || domain.lastIndexOf('.youtube.com') != -1) {\n var overlay = document.getElementById('yt_overlay');\n if(overlay)\n overlay.remove();\n var downloadframe = document.getElementById('yt_download_frame');\n if(downloadframe)\n downloadframe.remove();\n if(typeof window.JSInterface !== 'undefined' && typeof window.JSInterface.setBooleanData !== 'undefined')\n window.JSInterface.setBooleanData('disable_new_window_allow_1dm', true);\n overlay = document.createElement(\"div\");\n document.body.appendChild(overlay);\n overlay.outerHTML = '<div id=\"yt_overlay\" style=\"position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:1000\"><div style=\"position:fixed;width:75%;left:50%;transform:translate(-50%,0);margin-top:60px;background-color:#fff;border:1px solid #000;padding:15px;text-align:center\"><h2>Youtube downloader<\/h2><label for=\"yt_file_format\" style=\"margin-right:10px;font-size:18px;color:#4CAF50\">Choose a format:<\/label><select name=\"yt_file_format\" id=\"yt_file_format\" style=\"color:#4CAF50\"><option value=\"\">Default<\/option><option value=\"mp3\">MP3<\/option><option value=\"m4a\">M4A<\/option><option value=\"360\">MP4 360p<\/option><option value=\"480\">MP4 480p<\/option><option value=\"720\">MP4 720p<\/option><option value=\"1080\">MP4 1080p<\/option><option value=\"4k\">WEBM 4K<\/option><option value=\"8k\">WEBM 8K<\/option><\/select><br \/><br \/><button type=\"button\" id=\"yt_cancel\" style=\"margin-right:10px;background-color:#ccc;color:#000;border:none;padding:8px 15px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;cursor:pointer;\">Cancel<\/button><button type=\"button\" id=\"yt_download\" style=\"margin-left:10px;background-color:#4CAF50;color:#fff;border:none;border:none;padding:8px 15px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;cursor:pointer;\">Download<\/button><br \/><br \/><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=idm.internet.download.manager\" target=\"_blank\" style=\"text-decoration: underline;font-weight: bold;cursor:pointer;\">DOWNLOAD 1DM FOR ANDROID<\/a><\/div><\/div>';\n var yt_cancel = document.getElementById('yt_cancel');\n yt_cancel.addEventListener(\"click\", (function(){var temp=document.getElementById('yt_overlay'); if(temp)temp.remove();}));\n var yt_download = document.getElementById('yt_download');\n yt_download.addEventListener(\"click\", (function(){var yt_file_format = document.getElementById('yt_file_format');var temp=document.getElementById('yt_overlay'); if(temp)temp.remove(); \n var frame = document.getElementById('yt_download_frame');\n if(frame)\n frame.remove();\n frame = document.createElement(\"div\");\n document.body.appendChild(frame);\n frame.outerHTML = '<div id=\"yt_download_frame\" style=\"position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:1000\"><div style=\"position: fixed;width:300px;height:100px;left:50%;transform:translate(-50%,0);margin-top:60px;\"><iframe scrolling=\"no\" style=\"width:230px;height:60px;border:0;overflow:hidden;\" src=\"https:\/\/loader.to\/api\/button\/?url='+encodeURIComponent(window.location.href.replace(\/&list=.*?&\/, '&').replace(\/&list=[^&]*?$\/, ''))+'&type=Download&f='+yt_file_format.options[yt_file_format.selectedIndex].value+'\"><\/iframe><br \/><button type=\"button\" id=\"yt_download_cancel\" style=\"margin-right:10px;background-color:#ccc;color:#000;border:none;padding:8px 15px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;cursor:pointer;\">Close<\/button><\/div><\/div>';\n var yt_download_cancel = document.getElementById('yt_download_cancel');\n yt_download_cancel.addEventListener(\"click\", (function(){var temp=document.getElementById('yt_download_frame'); if(temp)temp.remove();}));\n }));\n } else\n alert('Not a YouTube link');\n})();","folder":"","order":-1,"f_order":-1,"mod_date":1609922588854} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment