public marks

PUBLIC MARKS from decembre with tags script & userscript

2020

đź›  FIREFOX ADDON - ANDROID - Unified Script Injector (usi) - Install userscripts on Firefox for Android - gHacks Tech News

(via)
Unified Script Injector (usi) is a new Firefox add-on that has been designed to provide users of Firefox for Android with means to run userscripts. While Firefox desktop users have some choice when it comes to adding userscript support to their browser, Greasemonkey and the newly released Tampermonkey come to mind, none of these option appear to work on Firefox for Android. The new Firefox add-on usi changes that by adding support for a wide variety of usrescripts. The author notes on the official add-on page that the add-on supports some Greasemonkey functions but not all of them. What this means is that you may encounter userscripts that don't work yet when you install them with the help of the browser extension.

đź›  GM - Go Home - Search on Fire

After a certain amount of time the user is inactive (default is 10 minutes) this script redirects a tab to the homepage. This appears to be useful for Kiosk browsing environments – after someone leaves the computer the next person can start at the home page again.

2018

USERSTYLES - JAVASCRIPT - Convert an Userstyle into a greasemonkey script ? - forum.userstyles.org

I have an huge Style , impossible (for me) to compress more to publish here ... I want find a way to convert it , automatically if it is possible, into an greasemonkey .

CSP - BOOKMARKLET - The Resurrection of Bookmarklets

I use the @resource command to access my 56K JavaScript library file, get the contents of it, and directly insert that .JS file document text using the script object .text property instead of the .src property.

2017

GREASEMONKEY (v.4 - webextention) - FIR 57 - Greasespot: Greasemonkey 4 For Script Authors

What? The Greasespot Wiki will be updated to explain Greasemonkey 4 in detail. Until then, here's a quick summary. First, there is only an embedded editor. Browser Extensions have no access to the file system, so you can no longer author user scripts in your familiar text editor. There is only one object provided to user scripts now, named GM. It has several properties. One of them is info – the equivalent of the old GM_info. There are also several methods of this object: getResourceUrl, deleteValue/getValue/listValues/setValue, xmlHttpRequest. To use these methods you still need @grant, and use the new name, e.g.: // @grant GM.setValue The new form has a dot, where the old form has an underscore. You may specify both @grants, if you'd like to be compatible with Greasemonkey 4 and other user script engines at the same time. As of today, there is no support for: GM_log (use console.log), GM_addStyle, GM_registerMenuCommand, nor GM_getResourceText.

2016

2015

UserScript: Quick link to Flickr Url and HTML code for images. | Femgeek.co.uk

(via)
This is a very basic user script that puts the url of the image you want in the image thumbnail as your browsing the site, it also adds a textarea to enable you to copy the html straight into your blog post without clicking through to the image

BOKMARKLET - jQuery UI dialog in Bookmarklet and GreaseMonkey - Stack Overflow

(via)
Thanks to some awesome answers in other threads, I learned how to: load jQuery and jQuery-UI in a bookmarklet load a CSS into a bookmarklet using jQuery create a DIV in a bookmarklet using jQuery create jQuery UI dialog (external link) and I could manage to combine all four things into a single script which works both as a BookMarklet and as a GreaseMonkey script, which is absolutely awesome.

USERSCRIPT - @document-start Example: hijack page scripts for Greasemonkey

The implement of @run-at document-start greatly extent what userscript capable range. This snippet is one of the example show how to interfere the original script before they run, instead of stay away until the DOM is ready ( DOMContentloaded event fired ).

GM - firefox - How to alter this javascript with Greasemonkey? - Stack Overflow

On Firefox Greasemonkey, you can do that with the stupefyingly brilliant (^_^) checkForBadJavascripts utility

2014

GOOGLE - GUIDE - How-to for Google Greasemonkey/Userstyles authors.... | Everything Else

by 1 other
Google , que vous pouvez ou ne pouvez pas savoir , tourne trois modèles de page de cette écriture . Les deux premiers héritent beaucoup de code de l'autre , mais encore besoin de règles CSS séparées pour cibler la barre de navigation et d'autres éléments de la page , la dernière (troisième) conception exige un ciblage tout à fait différent .

2010

JSMin (Online Javascript version of this Tool) - A filter which removes comments and unnecessary whitespace from JavaScript files

by 1 other
JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.You can automate this process with a minimizing application which you can find here and an on-line javascript version here ______ You should note that while comments are useful for maintaining the code, they are a liability itself in Javascript since they will be transmitted along with the code to each and every page load, which can create substantial bandwidth penalties and increase the load time of your page for users. This doesn't mean you shouldn't comment your code, just that once your code is "finished" you should make a backup copy with the comments, then strip out all the comments in the file which is actually sent to the user.

Userscripts.org Script Versions Tab for Greasemonkey

Adds a Versions tab to script pages on userscripts.org

Use Greasemonkey Scripts In Google Chrome - But, there are some limitations as well (as with Opera — which also supports some greasemonkey scripts) - Chrome does not support @exclude, @require, @resource, unsafeWindow, or any of the special GM_* APIs.

Well, here is how to run userscripts in chrome : * Add this flag to Google Chrome launcher : --enable-user-scripts - Now, create a folder in your user data directory. Name it as User Scripts. - Save your all GM scripts in this folder. - If you want to import all userscripts from Firefox — you need to do it manually. We have shown you the way to backup your Greasemonkey scripts. Just navigate to your GM script folder in Firefox data directory as describe in this post. Now, you can copy and paste every script’s file manuallyAnd, you are done! Restart the chrome — and visit any related site. It is quite possible that your favorite GM Script will do the magic. - Important fact : Chrome supports “Early Injection” – the ability to run scripts very early in the page’s lifecycle. In Firefox, userscripts run after page load. But in chrome, you can set it to run before page load. For this, you need to add an extra line in scripts meta data section : // @run-at document-start

2009

Management of scripts greasemonkey - Recherche Google

management of the scripts are not so good. It's apparently impossible to rename a script....

UserScript Writing 101 – Manuel of Things to learn - Userscripts.org

The Order of Things to Learn Look to the "Resources" section for places to learn about these. 1. HTML. Hypertext Markup Language. Not the same "language" as JavaScript. This is a markup language, meaning it's a bunch of text that is meant to represent some type of structure, in this case, a web page. 2. XML. Extensible Markup Language. In case you didn't realize, HTML itself is a type of "XML". Learning XML is important because many popular websites (YouTube, Facebook, Last.fm) use XML to interact with data. Since you already know HTML by this point, understanding XML should be cake. 3. CSS. Cascading Style Sheets. This is the way HTML (should be) stylized. You'll want to learn this. 4. JavaScript. Learn all the basics: data types, functions, JavaScript's native functions like prompt, alert, etc. 5. The Greasemonkey Extras. Like I said, Greasmonkey == JavaScript, with a lot of extras. A specific page listing the API's can be found here.

Flickr Gallery Plus! for Greasemonkey

Flickr Gallery Plus! is a Greasemonkey userscript for Flickr photo set pages which offers you the ability to: * View one large picture with the other thumbnails in the set next to it. * Click-selection of whichever picture you want to see larger. * Keyboard navigation with left and right arrow keys to go back and forth amongst pictures. * View a slideshow of all pictures in the set. It is tested and verified to work with Firefox, Safari (through GreaseKit), Google Chrome (through HOW TO: Install Google Chrome Greasemonkey Scripts (Windows Only)) and Opera (through Opera Tutorial: User JavaScript).

Forum Deblocker - Greasemonkey

The "Forum Deblocker" userscript simulates the Googlebot so you may see the forum pages as google sees them

Google Fx v2.1.9 for Greasemonkey - firefox et opera

AutoPaging + Site ThumbShots + Google Suggest (multi-lang) + Easy Filters + Right Panel Feature + Images Redirect & Preview + Searchers + Static TopBar + NoAds + Nice Look&Feel + User's Settings + MultiLanguage & more... [Opera & Firefox] Version: 2.1.9

Multi-Column Results - Splits Google search results - Download

Multi-Column ResultsSplits Google search results into multiple columns. It’ll be incredibly useful if you’re on a wide screen monitor. Alt+1/2/3 keys can be used to switch between one, two and three column views.

Unpaginate Pagination Microformated Web Pages for Greasemonkey

This script will unpaginate any web pages augmented by the pagination microformat, into what traditionally (if somewhat incorrectly) has been called "endless" Google, Flickr, and similar, pages. In other words, a hack that loads the next page into the present one when you scroll within about half a screenful of the end, so you don't have to lose the pageful you have to load the next pageful -- it just gets inlined for you, instead. By itself, this script will do nothing at all, because it only contains the code that implements this unpagination; tailoring it to other sites is up to other, much, much smaller custom scripts anyone can write -- or indeed site authors may augment their site templates with, for the benefit of their visitors running this hack, should they want to.