Advertisement
Guest User

Chrome Gesture config

a guest
May 21st, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "name": "Chrome Gestures",
  3.   "version": "1.12.1",
  4.   "normal_actions": {
  5.     "L": {
  6.       "name": "back",
  7.       "args": []
  8.     },
  9.     "R": {
  10.       "name": "forward",
  11.       "args": []
  12.     },
  13.     "UD": {
  14.       "name": "reload",
  15.       "args": []
  16.     },
  17.     "UDU": {
  18.       "name": "cacheless reload",
  19.       "args": []
  20.     },
  21.     "DR": {
  22.       "name": "close this tab",
  23.       "args": []
  24.     },
  25.     "#FlipBack": {
  26.       "name": "back",
  27.       "args": []
  28.     },
  29.     "#FlipForward": {
  30.       "name": "forward",
  31.       "args": []
  32.     },
  33.     "ULU": {
  34.       "name": "go to parent dir",
  35.       "args": []
  36.     },
  37.     "DU": {
  38.       "name": "open new tab",
  39.       "args": []
  40.     },
  41.     "UL": {
  42.       "name": "select left tab",
  43.       "args": []
  44.     },
  45.     "UR": {
  46.       "name": "select right tab",
  47.       "args": []
  48.     },
  49.     "DUR": {
  50.       "name": "clone tab",
  51.       "args": []
  52.     },
  53.     "RUL": {
  54.       "name": "open #1 in new tab background",
  55.       "args": [
  56.         "",
  57.         ""
  58.       ]
  59.     },
  60.     "LDRUL": {
  61.       "name": "config",
  62.       "args": []
  63.     },
  64.     "URD": {
  65.       "name": "run script #1",
  66.       "args": [
  67.         "(function(){ /* This regex was adapted from the BrowseImages extension for Firefox. */ var regex= new RegExp('(\\\\.jpg$|\\\\.jpg[&;])|(\\\\.gif$|\\\\.gif[&;])|(\\\\.png$|\\\\.png[&;])|(\\\\.jpeg$|\\\\.jpeg[&;])|(\\\\.bmp$|\\\\.bmp[&;])|(\\\\.svg$|\\\\.svg[&;])|(\\\\/full\\\\.php\\\\?.*ima?ge?=)|(\\\\/preview\\\\.php\\\\?.*ima?ge?=)|(\\\\/view\\\\.php\\\\?.*ima?ge?=)|(\\\\/view\\\\.php\\\\?.*pic=)|(\\\\/view\\\\.showImage\\\\.php)|(album_pic\\\\.php?pic_id=)|(\\\\dchan\\\\.org\\\\/.*\\\\/cb-nws\\\\/)|(\\\\dchan\\\\.org\\\\/.*src\\\\.cgi)|(attachment\\\\.php\\\\?attachmentid=\\\\d+&d=\\\\d+)', \"i\"); var doc = \"data:text/html,<html><head><title>Images of '\"+document.title+\"'</title></head>\"; doc += \"<body style='text-align:center; font-family: Verdana, sans-serif; font-size:80%;'><H1>Images of <a href='\"+document.URL+\"'>\"+document.title+\"</a></h1>\"; seen = {}; for(var i = 0; i < document.links.length; i++) { link = document.links[i].href; if (link.match(regex) && !seen[link]) { doc += \"<img src='\"+link+\"'><br>\\n\"; doc += \"<a href='\"+link+\"'>\"+link+\"</a><p>\"; seen[link] = 1; } } doc += \"</body></html>\\n\"; open(doc); })();",
  68.         "Images in tabs"
  69.       ]
  70.     },
  71.     "DL": {
  72.       "name": "run script #1",
  73.       "args": [
  74.         "var factor = Math.sqrt(2); var grow = function(img){img.width *= factor; img.height *= factor; }; var e = arg.event.srcElement; grow(e); var a = e.getElementsByTagName(\"img\"); for (var i=0; i < a.length; i++) { \tgrow(a[i]); } ",
  75.         "Zoom image"
  76.       ]
  77.     },
  78.     "RLD": {
  79.       "name": "run script #1",
  80.       "args": [
  81.         "console.log(arg);",
  82.         "Log arg"
  83.       ]
  84.     }
  85.   },
  86.   "linkdrag_actions": {
  87.     "D": {
  88.       "name": "open in new tab",
  89.       "args": []
  90.     },
  91.     "DU": {
  92.       "name": "open in background tab",
  93.       "args": []
  94.     },
  95.     "U": {
  96.       "name": "copy url",
  97.       "args": []
  98.     },
  99.     "UD": {
  100.       "name": "copy url and text",
  101.       "args": []
  102.     }
  103.   },
  104.   "textdrag_actions": {
  105.     "DR": {
  106.       "name": "search with #1 in new tab",
  107.       "args": [
  108.         "http://www.google.com/search?q=%s",
  109.         "Google"
  110.       ]
  111.     },
  112.     "UL": {
  113.       "name": "copy text",
  114.       "args": []
  115.     },
  116.     "UR": {
  117.       "name": "copy html",
  118.       "args": []
  119.     }
  120.   },
  121.   "mouse_track": true,
  122.   "visualized_arrow": true,
  123.   "superdrag": false,
  124.   "useMousewheel": false,
  125.   "useTabList": true,
  126.   "useSmoothScroll": true,
  127.   "ScrollSpeedValue": 0.2,
  128.   "useScrollAcceleration": false,
  129.   "AccelerationValue": 5,
  130.   "suppress_contextmenu": true,
  131.   "minimumUnit": 10
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement