This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name crowd-jpeg.vercel.app | |
// @namespace http://davemilsom.com | |
// @version 0.01 | |
// @description degradation | |
// @author Dave Milsom | |
// @match https://crowd-jpeg.vercel.app/ | |
// @updateURL https://gist.github.com/milsom/c4abad61f9a48ff168701745cf638895/raw/crowd-jpeg.vercel.app.user.js | |
// @downloadURL https://gist.github.com/milsom/c4abad61f9a48ff168701745cf638895/raw/crowd-jpeg.vercel.app.user.js | |
// @run-at document-start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name wandrer.earth updates | |
// @namespace http://davemilsom.com | |
// @version 1.7 | |
// @description things i think improve wandrer | |
// @author Dave Milsom | |
// @match https://wandrer.earth/* | |
// @updateURL https://gist.github.com/milsom/28a22b6b6311b0d7d019748140977814/raw/wandrer.user.js | |
// @downloadURL https://gist.github.com/milsom/28a22b6b6311b0d7d019748140977814/raw/wandrer.user.js | |
// @grant window.onurlchange |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var existingAction = gApp.inMemoryModels.serviceCollection.at(0).get('actions').at(0); //first index for connector, second for action | |
var valsToCopy = existingAction.get('parameters').at(3).get('values'); //get values from "add record" | |
var newAction = gApp.inMemoryModels.serviceCollection.at(1).get('actions').at(0); //if mappings are in a different connector | |
var updateParams = newAction.get('parameters').at(3); //3 = add record, 4 = updaterecord | |
updateParams.set('values',valsToCopy,{silent:true}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = document.createElement('iframe'); | |
i.style.display = 'none'; | |
document.body.appendChild(i); | |
window.console = i.contentWindow.console; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lsTest(){ | |
var test = 'test'; | |
try { | |
localStorage.setItem(test, test); | |
localStorage.removeItem(test); | |
return true; | |
} catch(e) { | |
return false; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (b.order_id){ | |
var m = ""; | |
var ez = []; | |
var dupeflag = 0; | |
if (sessionStorage.ordids){ | |
m = sessionStorage.ordids + ","+b.order_id; | |
ez = sessionStorage.ordids.split(","); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Attempting to kill visitor session for Trace."),window.utag&&utag.track?utag.track("kill_visitor_session",{event:"kill_visitor_session","cp.trace_id":utag.data["cp.trace_id"]}):console.log("Unable to kill visitor session using utag.track.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var csv = ""; | |
var hrefs = []; | |
var list = document.getElementsByTagName("a"); | |
for (i = 0; i < list.length; i++) { | |
var href = list[i].getAttribute("href"); | |
if (href !== null && href.charAt(0) !== "#" && href.substring(0,4) != "http") { | |
if (hrefs.indexOf(href) == -1) { | |
hrefs.push(href); | |
csv += href + "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
function b() { | |
var d = new Array(); | |
var g = document.cookie; | |
if (g != "") { | |
var h = g.split("; "); | |
for (var f = 0; f < h.length; f++) { | |
var e = h[f].split("="); | |
d[e[0]] = decodeURIComponent(e[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Override value would come from extension config. | |
// link_type = "autolink" for all links | |
// link_category = "external", "download" or "internal" | |
// link_domain = domain of link that was clicked | |
// link_path = pathname of the href in the link | |
// link_text = text of link | |
// link_url = complete url of the link clicked | |
// link_object = complete node object of link clicked. This is in case further data is needed from | |
// the link it can be grabbed via Set Data Values extension in addition to this extension |
NewerOlder