{"id":15498840,"url":"https://github.com/eapo/bookmarklets","last_synced_at":"2025-10-07T02:08:07.745Z","repository":{"id":195648359,"uuid":"107833816","full_name":"eapo/bookmarklets","owner":"eapo","description":"useful bookmarklets to make browsing easier","archived":false,"fork":false,"pushed_at":"2025-05-07T14:15:24.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T15:59:32.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eapo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-10-22T03:17:15.000Z","updated_at":"2025-05-07T14:15:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2eb7c18-66a5-468c-aeeb-33f726634b89","html_url":"https://github.com/eapo/bookmarklets","commit_stats":null,"previous_names":["eapo/bookmarklets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eapo/bookmarklets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eapo%2Fbookmarklets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eapo%2Fbookmarklets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eapo%2Fbookmarklets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eapo%2Fbookmarklets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eapo","download_url":"https://codeload.github.com/eapo/bookmarklets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eapo%2Fbookmarklets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271090498,"owners_count":24697615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T08:48:31.949Z","updated_at":"2025-10-07T02:08:02.696Z","avatar_url":"https://github.com/eapo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bookmarklets\nuseful bookmarklets to make browsing easier\n\n## [OnSiteCountDown.bookmarklet](https://github.com/eapo/bookmarklets/blob/master/OnSiteCountDown.js)\nSimple countdown timer with predefined defaults. \n\n### Simple *JavaScript* *Bookmarklet* to create countdown timer on any webpage easy:\n1. Create the Bookmarklet\n2. Run to show the countdown dialog on the site.\n3. `[Alt] + [2]` to start `28 sec` countdown with notification sound at the end.\n    - press `[Tab]` first in case the acceskeys are not active\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n```\njavascript:/*OnSiteCountDown.js on github.com/eapo/bookmarklets */(function(){var container=document.createElement('div');container.id='container';container.style.cssText='position:fixed;bottom:10vw;left:10vh;width:200px;height:200px;background-color:red;opacity:0.3;border-radius:15px;z-index:9999;user-select:none;cursor:move;box-shadow:#fff 3px 3px 1px;';var close=document.createElement('div');close.style.cssText='position:absolute;top:0;right:0;width:1em;height:1em;border:2px solid #fff;border-radius:15px;text-align:center;font-size:1.3em;font-weight:bold;cursor:pointer;padding:0.7em;color:#fff;line-height:0;text-indent:-0.3em;font-family:monospace;';close.innerHTML='X';close.addEventListener('click', function(){document.body.removeChild(container);});var input=document.createElement('input');input.id='countdown';input.type='number';input.accessKey='s';input.title='Alt + s';input.style.cssText='width:100%;height:76%;font-size:72px;font-weight:bold;text-align:center;color:#fff;background-color:transparent;border:1px inset;border-radius:15px;';input.placeholder='Enter seconds';function playSound(){const ctx=new AudioContext();const osc=ctx.createOscillator();osc.type=\"sine\";osc.frequency.value=432;osc.connect(ctx.destination);osc.start();osc.stop(ctx.currentTime + 0.18);ctx.oncomplete=function(event){const audioBuffer=event.renderedBuffer;const audioData=new Float32Array(audioBuffer.length);}}function startCountdown(){var countdown=parseInt(input.value);container.style.opacity='0.3';var interval=setInterval(function(){countdown--;input.value=countdown;if (countdown === 0){clearInterval(interval);container.style.opacity='1';playSound();}}, 1000);} input.addEventListener('keydown', function(event){if (event.key === 'Enter'){startCountdown();}});var controls=document.createElement('div');controls.style.display='flex';controls.style.justifyContent='space-between';controls.style.marginTop='10px';function addButton(v,a){var set1=document.createElement('button');set1.textContent=v;set1.accessKey=a;set1.title='Alt + '+a;set1.style.cssText='font-size:18px;font-weight:bold;padding:0 1em;font-family:monospace;background:none;border:none;';set1.addEventListener('click', function(event){event.preventDefault();input.value=v;startCountdown();});return set1;} controls.appendChild(addButton(9,1));controls.appendChild(addButton(28,2));controls.appendChild(addButton(57,3));container.appendChild(close);container.appendChild(input);container.appendChild(controls);document.body.appendChild(container);var isDragging=false;var offset ={x: 0, y: 0};container.addEventListener('mousedown', function(event){isDragging=true;offset.x=event.clientX - container.offsetLeft;offset.y=event.clientY - container.offsetTop;});container.addEventListener('mouseup', function(){isDragging=false;});container.addEventListener('mousemove', function(event){if (isDragging){container.style.left=(event.clientX - offset.x) + 'px';container.style.top=(event.clientY - offset.y) + 'px';}});})();\n```\n\n## string2qr.bookmarklet\nEasy to use QR code generator using the amazing [kaywa.com](http://qrfree.kaywa.com) service.\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n\n```\njavascript:var str=prompt('string2qr','default string');if(str.length\u003e0){content=str;}else{content=document.location.href;}window.open('http://qrfree.kaywa.com/?l=1\u0026s=8\u0026d='+encodeURIComponent(content),'string2qr',false)\n```\n\n## MarkDownLinkIt.bookmarklet\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n\n```\njavascript:/*MarkDownLinkIt! bookmarklet*/ function utoa(t){return window.btoa(unescape(encodeURIComponent(t)))}var str=prompt(\"HIVE it!\",\"[\"+document.title+\"](\"+document.location.href+\")\");str.length\u003e0?content=str:content=document.location.href,window.open(\"https://hive.blog/submit.html?body=\"+utoa(content)+\"\u0026title=\"+utoa(document.title),\"_blank\",!1);\n```\n\nOptionally in case of pressing [OK] will open https://hive.blog/submit.html in a new window. This can be replaced with any other markdown editor to set as default.\n\n## fb-chatdestroyer.bookmarklet\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n\n```\njavascript:function RemoveContentInContainer(selector) { var nodeList = document.querySelectorAll(selector); for (var i = 0, length = nodeList.length; i \u003c length; i++) { if (nodeList[i].parentNode) { nodeList[i].parentNode.removeChild(nodeList[i]);} }}RemoveContentInContainer(\".opened\");\n```\n\n## [bookmarklets/Night-Cafe-UX-booster](https://github.com/eapo/bookmarklets/blob/master/Night-Cafe-UX-booster)\nBoosting the [NightCafe Creator](https://creator.nightcafe.studio/) user interface using [jQuery](https://jquery.com/)\nFeatures\n- [x] image enlargement\n  - [x] on the dashboard of [My Creations](https://creator.nightcafe.studio/my-creations)\n  - [x] and on the single page of cretions\n  - [x] on the \"Voting\" section of [Daily Challenges](https://creator.nightcafe.studio/challenges)\n- [x] hotkeys for voting\n  - [x] on the \"Voting\" section of [Daily Challenges](https://creator.nightcafe.studio/challenges)\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n\n```\njavascript:/*Night-Cafe UX booster*/(function(){const jq=document.createElement('script'); jq.src = \"//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"; document.getElementsByTagName('head')[0].appendChild(jq); jq.onload=function(){ let ad=jQuery('div#ezmobfooter center'); ad.css({\"position\":\"fixed\",\"top\":\"0\",\"left\":\"0\",\"z-index\":\"999\",\"height\":\"100vh\",\"width\":\"auto\"}).hide(); let nc=jQuery('img[alt=\"NightCafe Logo\"]'); let vw=jQuery('img[sizes=\"100vw\"]'); vw.hover(function(){jQuery(this).css({\"margin\":\"0\",\"position\":\"fixed\",\"left\":\"0\",\"max-height\":\"100%\",\"height\":\"100vh\",\"max-width\":\"100%\",\"object-fit\":\"contain\",\"z-index\":\"999\",\"width\":\"auto\"}); jQuery('body').css({\"margin-left\":vw.width()}); }, function(){ jQuery(this).css(\"z-index\",\"-1\"); }); vw.click(function(){ window.open(vw.attr('src'),'_blank');}); let spng=jQuery('span \u003e span \u003e span \u003e img'); spng.hover(function(){ var src = jQuery(this).attr('src'); vw.attr('src',src).attr('srcset',src); }); /*NC Voter*/ var vi=jQuery('.modal-body img'); vi.clone().prependTo(ad); vi.click(function(){ window.open(vi.attr('src'),'_blank');}); jQuery.each(jQuery('.modal-body .css-wohve1'),function(i,val){$(this).attr('accesskey',i+1).append('\u003csmall style=\"font-size:9px;position:absolute;\"\u003eAlt+'+(i+1)+'\u003c/sup\u003e');}); document.addEventListener('keydown',function(e){if(e.keyCode==87){jQuery('span#ezmob-wrapper').css({\"position\":\"fixed\",\"z-index\":\"999\"}); ad.children('img').attr('src',jQuery('.modal-body img').attr('src')).attr('srcset',jQuery('.modal-body img').attr('src')).css({\"max-height\":\"100vh\",\"width\":\"auto\",\"height\":\"100vh\"}); ad.show(); }; if(e.keyCode==81){ad.hide();}; }); /*NC Creations */ jQuery(\".renderIfVisible img\").hover(function(){var src=jQuery(this).attr('src'); nc.attr('src',src).css({\"position\":\"fixed\",\"z-index\":\"999\",\"top\":\"0\",\"left\":\"0\",\"min-width\":\"min-content\",\"width\":\"min-content\"})}); document.addEventListener('keydown',function(e){if(e.keyCode==87){nc.show(); }; if(e.keyCode==81){nc.hide();}; }); };})()\n```\n\n## Cookies NoConsent\nMass deselect all cookies\n\n##### Just copy the following code to the *URL* section of the new Bookmark:\n\n```\njavascript:document.querySelectorAll('input[checked]').forEach(item =\u003e { item.click();});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feapo%2Fbookmarklets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feapo%2Fbookmarklets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feapo%2Fbookmarklets/lists"}