{"id":16432890,"url":"https://github.com/teles/bookmarklets","last_synced_at":"2026-03-18T19:37:12.762Z","repository":{"id":144746616,"uuid":"587457891","full_name":"teles/bookmarklets","owner":"teles","description":"A list of useful bookmarklets for daily usage","archived":false,"fork":false,"pushed_at":"2023-03-07T14:30:14.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T21:06:38.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-01-10T19:52:58.000Z","updated_at":"2023-03-08T04:22:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef63a885-9293-4273-8547-50c2d65cb4b5","html_url":"https://github.com/teles/bookmarklets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Fbookmarklets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Fbookmarklets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Fbookmarklets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teles%2Fbookmarklets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teles","download_url":"https://codeload.github.com/teles/bookmarklets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240710061,"owners_count":19845039,"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","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-11T08:44:36.349Z","updated_at":"2026-01-29T03:04:41.136Z","avatar_url":"https://github.com/teles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bookmarklets\n\nA list of useful bookmarklets for daily usage\n\n## General\n\n### Prepend relative URLs with base URL\n\n```JavaScript\nconst prependURL = window.prompt(\"Base URL to prepend\", location.hostname)\nArray.from(document.querySelectorAll(\"a[href]\")).filter(a =\u003e {\n    return a.getAttribute(\"href\") !== a.href;    \n}).forEach((a, index, anchors ) =\u003e {\n    a.setAttribute(\"href\", [\n        prependURL.replace(/\\/$/, ''), \n        a.getAttribute(\"href\").replace(/^\\//, '')\n    ].join(\"/\"));\n    if(index === anchors.length -1) {\n        window.alert(`Success: ${anchors.length} changed anchors`)\n    }\n})\n```\n\n### Show images without alt attribute\n\n```JavaScript\nconst borderColor = window.prompt(\"Set a highlight color for images without alt\", \"red\");\nconst imgs = Array.from(document.querySelectorAll(\"img:not([src])\"));\nimgs.forEach(img =\u003e img.style.border = `3px dashed ${borderColor}`);\nwindow.alert(`This page has ${imgs.length || 0} images without alt attribute`);\n```\n\n### Fill in all inputs with their placeholder values\n\n```JavaScript\ndocument.querySelectorAll('input[placeholder]').forEach(input =\u003e input.value = input.placeholder);\n```\n\n### Fill in all inputs with placeholders plus timestamp\n\n```JavaScript\nconst inputReplacers = {\n    \"email\": (value) =\u003e value.replace(/(.*?)@(.*?)/, `$1+${new Date().getTime()}@$2`),\n    \"text\": (value) =\u003e `${value} +${new Date().getTime()}`    \n}\ndocument.querySelectorAll('input[placeholder]').forEach(input =\u003e { \n    input.value = inputReplacers[input.type] ? inputReplacers[input.type](input.placeholder) : input.placeholder;    \n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteles%2Fbookmarklets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteles%2Fbookmarklets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteles%2Fbookmarklets/lists"}