Skip to content

Instantly share code, notes, and snippets.

[22:28:07.898] 1381199287897 Sync.Engine.Greasemonkey WARN DATA LOSS: Both local and remote changes to record: a0cf2d4224a19c9a231052609a0932f8978bdd7a
[22:28:07.902] 1381199287902 Sync.Engine.Greasemonkey WARN Failed to reconcile incoming record 72139402e49c585fe9b3b08c93e8d6774a73c91e
[22:28:07.902] 1381199287902 Sync.Engine.Greasemonkey WARN Encountered exception: Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openDatabase] Stack trace: GM_ScriptStorage_getDb()@resource://greasemonkey/miscapis.js:30 < GM_ScriptStorage.prototype.listValues()@resource://greasemonkey/miscapis.js:120 < ScriptStore.prototype.createRecord()@resource://greasemonkey/sync.js:117 < SyncEngine__createRecord()@resource://services-sync/engines.js:682 < _reconcile()@resource://services-sync/engines.js:1198 < resource://services-sync/engines.js:904 < resource://services-sync/record.js:625 < Channel_onDataAvail()@resource://gre/modules/services-sync/resource.js:542 < <file:unknown>
[22:28:07.
// ==UserScript==
// @name XHR Context
// @namespace http://github.com/arantius
// @include http*
// @version 1
// ==/UserScript==
// See: https://github.com/greasemonkey/greasemonkey/issues/1725
(function() {
// ==UserScript==
// @name Match Test #1747
// @match http://google.com/*/*
// @match http://www.google.com/*/*
// ==/UserScript==
alert('match works fine')
@arantius
arantius / xhr-cookie-test.user.js
Created April 7, 2013 23:21
Test for Greasemonkey issue 1730
// ==UserScript==
// @name API Leaker
// @namespace http://github.com/arantius
// @description Leaks GM API to content scope
// @include http*
// @version 1
// @grant GM_getValue
// @run-at document-start
// ==/UserScript==
@arantius
arantius / dataset-test.user.js
Created January 24, 2013 15:12
Test case for Greasemonkey issue #1571
// ==UserScript==
// @name dataset test
// @version 1
// @include *
// ==/UserScript==
var el_work = document.createElement('div');
el_work.id = 'el_work';
el_work.setAttribute('data-test2', 'test');
document.head.appendChild(el_work);
@arantius
arantius / greasemonkey-post-install.php
Created January 10, 2013 15:14
Test for Greasemonkey issue 1673
<?
if ($_POST) {
// Save the POSTed name in a cookie.
setcookie('script_name', $_POST['script_name']);
// Redirect to the user script installation handler.
//xxx header("Location: {$_SERVER['REQUEST_URI']}?.user.js");
?>
<meta http-equiv="refresh" content="0;<?=$_SERVER['REQUEST_URI']?>?.user.js">
<?
} else if (false !== strpos($_SERVER['REQUEST_URI'], '.user.js')) {
@arantius
arantius / ingress-intel-notify-ui.user.js
Created December 7, 2012 04:45
User script for the Ingress Intel dashboard / notifier
// ==UserScript==
// @name Ingress Intel: Notify UI
// @namespace https://arantius.com/misc/greasemonkey/
// @description Annotate the Ingress Intel Dashboard with links to control the Ingress Notify app.
// @match http://www.ingress.com/intel*
// @version 1
// @grant none
// ==/UserScript==
//const NOTIFY_SERVER = 'http://localhost:8080/'
@arantius
arantius / create-test-container.script
Last active April 6, 2019 12:38
How To Install Gentoo Onto Any OpenVZ VPS
# vzctl create 200 --config unlimited --ostemplate \
> debian-6.0-x86 --ipadd 192.168.202.200 --hostname guest
Creating container private area (debian-6.0-x86)
Performing postcreate actions
CT configuration saved to /etc/vz/conf/200.conf
Container private area was created
# vzctl start 200
Starting container...
Container is mounted
Adding IP address(es): 192.168.202.200
@arantius
arantius / google-logo.user.js
Created November 4, 2012 23:17
google logo script
// ==UserScript==
// @name Google Logo
// @namespace test
// @include http://*.google.*/
// @include https://*.google.*/
// @version 1
// ==/UserScript==
var oldLogo = document.getElementById('hplogo');
var newLogo = document.createElement('img');