I'm getting into user scripts at the moment. I know Opera is compatible with many aspects of Greasemonkey scripts, but not so much with other aspects.
The GM functions emulation script will be required on Opera, and at the start I have
if(window.opera) {
var unsafeWindow = window;
}
But beyond that, what other things should I kee...
Is there a way to store state of user script in opera? In GreaseMonkey one can use GM_SetValue/GM_GetValue. I saw one script that emulates them in opera using cookies but I don't like this idea for several reasons(mainly for limitied size of cookies). Is there another way to store state?
...
Is there some way to download and store files in a specific, developer-defined location using Opera's user javascript functions?
Thanks.
...
My past attempts at writing userscripts ended working in Firefox, but not Opera, because of subtle differences between the two browsers. Is it possible to use of those libraries that abstract the differences away like jQuery inside userscripts to make them cross-browser compatible with little effort?
...
What's the best way to debug custom User Scripts (aka Greasemonkey) in Chrome? Is there a way to enable User Script tracking in the Developer Tools?
...
How can one extract data from a rendered web page?
In which java script would update the data with time.
Is it possible to write user script which can access varibles from webpage java script?
Please suggest possible way to achieve this.
...
I want to write a user script that runs some custom JS on each <input type="password"> field that gets loaded. I could register an event handler on document load to look for all input fields and run the JS on them, but that means firstly that the JS won't run on input fields that subsequently get added by other JS, and secondly it won't ...
Hey guys, so I have a tab for twitter.com open all the time in Chrome and I've written a userscript that checks the document title every so often for new tweets. Since the Twitter web interface automatically checks, it will show (2) Twitter / Home as the title if there are two new tweets. Everything works as I want it to, and right now I...
Has anybody had any luck performing cross origin XHRs from a user script in Google Chrome? The requests go through to the server (I cann see them in the logs) but, the readystatechanged event is never fired.
Extension permissions don't seem to be doing the trick. Neither is jsonp.
...
Hey.
I've been wondering how I might set the version number displayed for user-scripts in Chrome's extension tab
So far the obvious methods have failed:
// ==UserScript==
// @version 1.1.5
// @uso:version 1.1.5
// ==/UserScript==
I know Greasemonkey for Firefox doesn't use a version value, but since Chrome actually displays a vers...
I had a couple of user script that worked in version 3.5 by adding command line option --enable-user-script, after I upgraded to version 4.0, all those scripts stop working. Chrome browser is promoting its extension, some of user script can be replace by a chrome extension. Can anybody confirm if latest chrome browser stop supporting use...
I'm sure this is simple but I have no idea how to do it.
How do i count the amount of DOM elements in my HTML page? I wanted to do this in a userscript or bookmarklet but i have no idea how to start!
...
I try to write a simple user script to enlarge the picture when you mouse-hover it :) ( like facebook fixer, but his code is somehow too difficult for me to understand )
I don't really know how to get the real image link of profile with the thumbnail :)
Real: http://profile.ak.fbcdn.net/v228/662/62/n1734060381_260.jpg
Thumbnail: http://...
The Problem
I want to press a key when I have a line highlighted and convert from a single line:
JGLogEntry *logEntry = [JGLogEntry applicationNoWindowsFrom:date1 to:date2 intoMOC:mockRawMOC];
to a multiline statement:
JGLogEntry *logEntry = [JGLogEntry applicationNoWindowsFrom:date1
...
On Firefox, I click Tools, Addons, Extensions, Greasemonkey, Options, select my user script, click Edit, change the source code, click save, reload one of the included pages, but the script is the unchanged version.
On User Scripts, logged in, I click my username, Script Management, my script's name, Admin, Edit Code Online, change the ...
I want to make a greasemonkey type script for firefox that runs before the scripts on the page. Greasemonkey scripts run after scripts on the page, so that won't work. The reason I need this is because I want to edit one of the scripts on the page. Specifically, I want to delete a script that forces the page to load inside a frame sin...
I've written a userscript for Gmail : Pimp.my.Gmail & i'd like it to be compatible with Google Chrome too.
Now i have tried a couple of things, to the best of my Javascript knowledge (which is very weak) & have been successful up-to a certain extent, though im not sure if it's the right way.
Here's what i tried, to make it work in Chro...
Hello. Suppose there is a website that supports multiple languages:
cn.mydomain.com or mydomain.com/cn or mydomain.cn
en.mydomain.com or mydomain.com/en or mydomain.com
fr.mydomain.com or mydomain.com/fr or mydomain.fr
I want to write a GreaseMonkey script that has variables assigned different strings/values according to the address ...
Hi. What is the best strategy to supply a necessary new version of jQuery (1.4.2) in a userscript, which modifies a page that already has an older version of jQuery (1.3.1)?
Preferably the original page continues to use '$' sign while in my script it uses an alias assigned by jquery.noConflict().
According to the answer to this questi...
Without telling everyone too much about my new idea for a website,
Pretty much I need help, maybe someone can help write it up, with a site that has a simple map that allows any user to double click the map and make a marker. When the marker comes up I just want Title and Description available for edit(only once, so others cant chan...