Questions tagged [bookmarklet]

A bookmarklet is a browser bookmark for a URL using the 'javascript:' protocol. The 'javascript:' prefix is followed by a snippet of JavaScript code. When invoked, instead of navigating to a new page, the script is executed within the context of the current page.

A bookmarklet is a browser bookmark for a URL using the javascript: protocol. The javascript: prefix is followed by a snippet of JavaScript code. When invoked, instead of navigating to a new page, the script is executed within the context of the current page.

1355 questions
0
votes
0 answers

Add fixed tag to diigo bookmarklet - javascript

I am trying to make a simple change to a standard diigo bookmarklet. I wish to add a fixed tag to the Diigo 'Add New Bookmark' form. My code is: javascript:javascript:(function(){ var url=location.href; var title=document.title||url; var…
JinkyP
  • 1
  • 1
0
votes
1 answer

How to NOT Display the URL/Location of a Browser Bookmark

I have a javascript link (works like a plugin, but not plugin, it's just a javascipt link), the user can just drag and drop the link to it's bookmark bar. Everything is working, but when the URL/location link is too long, it's very annoying that…
Peter Lee
  • 12,931
  • 11
  • 73
  • 100
0
votes
1 answer

Javascript bookmarklet getElementById - Youtube video page, related videos title

I am looking to get youtube video page's related video's title element. This is the javascript I am using, for some reason I could not get it to work. Here's the code, var span = document.getElementById('title').style; if(span.font-size=='13') …
Eshwar
  • 104
  • 10
0
votes
1 answer
0
votes
1 answer

Bookmarklet to embed YouTube page with parameters

My current code extracts the video ID of a YouTube video and embeds it on its own page: document.location = 'http://www.youtube.com/embed/' + document.location.href.match(/[&?]v=([^&#]*)/i)[1] I want to add code that adds the three YouTube…
0
votes
1 answer

Bookmarklet for opening page and then modifying its content

I am trying to make a bookmarklet, that navigates to http://projects.csail.mit.edu/church/wiki/ChurchServ and then inserts some code into the input-box on this site. I was trying this:
Max Tet
  • 735
  • 1
  • 8
  • 16
0
votes
1 answer

What's wrong with this Javascript for "Get URL and Title"?

javascript:( function(){ window.twttr = window.twttr || {}; var D = 550, A = 450, C = screen.height, B = screen.width, H = Math.round((B/2)-(D/2)), G = 0, F = document, E; …
thethiny
  • 1,125
  • 1
  • 10
  • 26
0
votes
2 answers

IPhone Safari Bookmarklet to paste clipboard into Drafts

This may be really simple, since I can't use window.getSelection on iPhone Safari, I was wondering if I could put the selection in the clipboard and use a bookmarklet to send it to Drafts (among with location.href) The first part of the equation is…
Phillip Gruneich
  • 120
  • 2
  • 10
0
votes
1 answer

Search for current website title and host bookmarklet

I have a bookmarklet which gets current website TITLE and search for it on my…
0
votes
1 answer

Bookmarklet not changing text in textbox

I have created this bookmarklet to highlight the username and password boxes on a page. I can change the colour of the boxes, but if I try to change the text in the box, it doesn't work:
Daniel Causebrook
  • 469
  • 1
  • 8
  • 20
0
votes
0 answers

Sniff 3rd Party Page, Check/Insert Data using ASP.NET into Database and Then Display Results

I have been tasked with reading information from a table on a 3rd party page. The website will have multiple pages and thus will have to have the bookmarklet run on it once per page. I currently have the bookmarketlet pulling the data, and putting…
Elias
  • 2,602
  • 5
  • 28
  • 57
0
votes
1 answer

Bookmarklet window gets blocked if I try to do anything besides open a new window

I'm trying to write a bookmarklet that takes the site the user is on, does some parsing and an ajax request, and opens a new window with that info as a param. Here's what I've got:
xavdid
  • 5,092
  • 3
  • 20
  • 32
0
votes
2 answers

How to access URL in location bar when the page was not loaded

The company I work for updated its DNS settings in our country and now a lots of old links without fully qualified domain name don't work anymore. Before: http://server:8080/something After: http://server.company.com:8080/something But other…
zengabor
  • 2,013
  • 3
  • 23
  • 28
0
votes
1 answer

Bookmarklet to grab the current website address but without http://

The other day you were very helpful. Now I have another question. I have a bookmarklet to grab the current URL or I should say host name (without the http:// part - which is ok) like: javascript:q=(document.location.host);…
Bostjan
  • 1
  • 1
0
votes
1 answer

Bookmarklet not appending in IE10

I have written a bookmarklet that functions just fine in Chrome and Firefox but it IE 10 it fails to append to the document. I believe it has something to do with it being listed as "unrated" in the IE favorites bar, but I am not sure what part of…
Josh Forbes
  • 328
  • 3
  • 6