bookmarklet

Javascript bookmarklet stopped working in Firefox 41

[亡魂溺海] 提交于 2019-12-08 05:33:42
问题 In Firefox 41, bookmarklets (bookmarks with a javascript: URL, e.g. javascript: alert("it works") , run from a click or a keyword) stopped working. Is there any solution to use javascript: bookmarks in Firefox 41? Previously seen, understood and solved in Javascript bookmark stopped working in Firefox 13: If you first load almost any URL, including about:blank, then a Javascript bookmark will work in that tab. Since Firefox's default behavior for new tabs is about:newtab , which is nothing ,

Bookmarklet to save URL in Google Spreadsheet

两盒软妹~` 提交于 2019-12-07 14:49:51
问题 I want to create a simple bookmarklet, that grabs the URL of the current webpage "location.ref" and saves it in a Google Spreadsheet. After it saves it, I want to stay on the current webpage. The only way I know of writing to Google Spreadsheet is using Google App Script. So I wrote a simple script that does just that: function doGet(request) { var ss = SpreadsheetApp.openByUrl( "https://docs.google.com/spreadsheet/ccc?key=<MY-SPREADSHEET-ID>"); var sheet = ss.getSheets()[0]; var headers = [

Bookmarklet to save file

不问归期 提交于 2019-12-07 12:12:53
问题 Is is possible to use a bookmarklet in Firefox to save/open a file directly? Many bookmarklets open a page on which one can click on a link to download the result. E.g. using a blob link. Is it possible to avoid this extra click and invoke the "save file" / "open file" dialog directly? 回答1: To trigger the "Save As" dialog for any resource ( blob: , http: , whatever permitted scheme), use the download attribute of an anchor. This is supported since Firefox 20. Example: A bookmarklet that

Create bookmarklet to fill form [closed]

徘徊边缘 提交于 2019-12-07 03:07:52
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I want to create a bookmarklet that fills in 1st, 2nd, 5th and 6th text box with text so I can use the tool on the site more easily, because I use it

Bookmarklet for mobile browser including login info

你说的曾经没有我的故事 提交于 2019-12-06 15:20:17
问题 Our website FavSync is a bookmarks manager and we're trying to achieve the following: On the mobile version of our website (there's no mobile app, just a mobile version) we would like to allow users to add bookmarks to their FavSync page on the go (adding the website they currently have open). On the PC browsers we achieved that by creating extensions/add-ons for each browser. However, not all mobile browsers support extensions and it would be too much work to create one for each mobile

Using jQuery UI in a Bookmarklet

天大地大妈咪最大 提交于 2019-12-06 10:26:10
问题 In CoffeeScript, though this code is almost identical to JavaScript: tabs_html = "<div id='nm-container'><ul><li><a href='#tabs-1'>Guidelines</a></li><li><a href='#tabs-2'>Test</a></li></ul> <div id='tabs-1'><p>something1</p></div><div id='tabs-2'><p>something2</p></div></div>" $("#nm-toolbar").append(tabs_html) $("#nm-container").tabs() It doesn't work. Funny thing is it does work when trying the last line: $("#nm-container").tabs() from the console. I'm attaching the full code below. Note

Javascript Bookmarklet to replace text with a link

六眼飞鱼酱① 提交于 2019-12-06 10:13:24
问题 I have some text on an HTML page. Need a bookmarklet (no jQuery) that will find a segment of the text using regex, then replace it with a link with the text as a parameter Example before: aaa bbb ccc ddd Example after: aaa <a href="http:www.whatever.com?bbb">bbb</a> ccc ddd assuming we were looking for "bbb" 回答1: This solution will crawl the DOM search for text nodes within the document elements, skipping any elements you want. For example, you probably want to skip <a> tags, as well as

Is a javascript bookmarklet that can set domain cookies breaking cross-domain security?

≯℡__Kan透↙ 提交于 2019-12-06 10:11:32
I am creating a bookmarklet that is to be used across a wide range of domains. I wanted to set some cookies to store temporary settings for this bookmarklet, so I assumed that setting a cookie from this script would assign the cookie to the domain of the script's origin. This was not the case, the bookmarklet is able to assign cookies to the domain of the current site being viewed. This is not suitable for my needs (this would remember settings per domain, rather than for the bookmarklet across all domains). My question is, is this somehow breaking the cross domain policy? And a follow up

Instagram auto like Bookmarklet

风格不统一 提交于 2019-12-06 09:27:11
Instagram Like (heart) auto click Post Bookmarklet Objective: Click all "Like" heart on page http://www.gramfeed.com/instagram/tags#photo Here is the code I was working with. This one worked on another site, var a = document.getElementsByTagName('a'); var b = []; for(var i=0, len = a.length; i < len; i++){ if(a[i].id.indexOf('like') !== -1){b.push(a[i]) } }; for(var i=0, len = b.length; i < len; i++){ b[i].click() }; Daedalus - Reinstate Monica The following should work; I've tested it on my end, and it likes the hearts(though that doesn't work since I'm not logged in, etc). javascript:

Include a specific version of JQuery and a plugin without conflicting with the page's JavaScript library?

两盒软妹~` 提交于 2019-12-06 09:19:23
问题 TL;DR : I want to include a specific version of JQuery and a specific JQuery plugin that is associated with my inclusion of jQuery on multiple different sites where I know nothing about the JavaScript libraries/plugins used by them, without conflicts. Possible? How? The whole story : Let's say I want to build a Reddit platform where multiple sites can link to Reddit threads by including http://myredditplatform.com/reddit.js and having <a href="" data-reddit-thread-id="1234"></a> elements