Advertisement
Guest User

Untitled

a guest
May 22nd, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  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){x=img.width; y=img.height; img.width = x*factor; img.height = y*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. "LDRDL": {
  86. "name": "run script #1",
  87. "args": [
  88. "window.open(\"view-source:\" + document.URL,\"_blank\");",
  89. "View source"
  90. ]
  91. },
  92. "DURD": {
  93. "name": "run script #1",
  94. "args": [
  95. "connection.postMessage('open_tab'); connection.postMessage('close_tab');",
  96. "Go home (by killing/spawning a tab)"
  97. ]
  98. }
  99. },
  100. "linkdrag_actions": {
  101. "D": {
  102. "name": "open in new tab",
  103. "args": []
  104. },
  105. "DU": {
  106. "name": "open in background tab",
  107. "args": []
  108. },
  109. "U": {
  110. "name": "copy url",
  111. "args": []
  112. },
  113. "UD": {
  114. "name": "copy url and text",
  115. "args": []
  116. }
  117. },
  118. "textdrag_actions": {
  119. "DR": {
  120. "name": "search with #1 in new tab",
  121. "args": [
  122. "http://www.google.com/search?q=%s",
  123. "Google"
  124. ]
  125. },
  126. "UL": {
  127. "name": "copy text",
  128. "args": []
  129. },
  130. "UR": {
  131. "name": "copy html",
  132. "args": []
  133. }
  134. },
  135. "mouse_track": true,
  136. "visualized_arrow": true,
  137. "superdrag": false,
  138. "useMousewheel": false,
  139. "useTabList": true,
  140. "useSmoothScroll": true,
  141. "ScrollSpeedValue": 0.2,
  142. "useScrollAcceleration": false,
  143. "AccelerationValue": 5,
  144. "suppress_contextmenu": true,
  145. "minimumUnit": 10
  146. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement