diff --git a/amazon-sort-by-review.user.js b/amazon-sort-by-review.user.js index e5f399c5..0e4a7423 100644 --- a/amazon-sort-by-review.user.js +++ b/amazon-sort-by-review.user.js @@ -1,18 +1,18 @@ // ==UserScript== // @name Amazon Sort by Review // @description Sort products best by reviews -// @version 1.4.0 +// @version 1.4.1 // @author iamogbz // @homepage https://github.com/iamogbz/oh-my-scripts // @supportURL https://github.com/iamogbz/oh-my-scripts/issues // @match *://*.amazon.ca/* // @match *://*.amazon.com/* // @match *://*.amazon.co.uk/* -// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/amazon-sort-by-review.user.js +// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/amazon-sort-by-review.user.js // @grant GM_xmlhttpRequest // @icon https://github.com/iamogbz/oh-my-scripts/raw/main/assets/monkey_128.png // @namespace iamogbz/oh-my-scripts -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/interval.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/interval.js // @updateURL https://github.com/iamogbz/oh-my-scripts/raw/gh-pages/amazon-sort-by-review.user.js // ==/UserScript== diff --git a/export-element.user.js b/export-element.user.js index e36d3dad..27079d2d 100644 --- a/export-element.user.js +++ b/export-element.user.js @@ -1,16 +1,16 @@ // ==UserScript== // @name Export Element // @description Add a context menu option to print a HTML element including all styles -// @version 1.4.0 +// @version 1.4.1 // @author iamogbz // @homepage https://github.com/iamogbz/oh-my-scripts // @supportURL https://github.com/iamogbz/oh-my-scripts/issues // @match *://*/* -// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/export-element.user.js +// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/export-element.user.js // @grant GM_registerMenuCommand // @icon https://github.com/iamogbz/oh-my-scripts/raw/main/assets/monkey_128.png // @namespace iamogbz/oh-my-scripts // @updateURL https://github.com/iamogbz/oh-my-scripts/raw/gh-pages/export-element.user.js // ==/UserScript== -(()=>{"use strict";!function(){const t=Object.freeze({PDF:"pdf"}),e={target:null,type:t.PDF};function n(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}document.addEventListener("contextmenu",(function(t){e.target=n(t.target,(t=>!t.nextSibling))})),Object.values(t).forEach((o=>{window.GM_registerMenuCommand(`As ${o.toUpperCase()}`,(()=>{!function(o){if(e.target){if(o===t.PDF)return function(t){const e=window.open("","","width=800,height=600");if(!e)return void alert("Please allow popups for this site and try again.");const o=e.document,r=function(t,e){function n(e,n){const o=t.getComputedStyle(e);for(const t of o)n.style.setProperty(t,o.getPropertyValue(t))}const o=e.cloneNode(!0);return n(e,o),function t(e,o){const r=e;for(let e=0;e{if(!(t instanceof Element))return!1;const n=window.getComputedStyle(t).backgroundColor;if(!n)return!1;if(n===e)return!1;const o=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);return!o||0!==(o[4]?parseFloat(o[4]):1)}));return o?window.getComputedStyle(o).getPropertyValue("background-color"):e}(t),e.setTimeout((()=>e.print()),1e3),e.addEventListener("afterprint",(function(){this.confirm("Close window after successful print?")&&e.close()}))}(e.target);alert(`Unsupported type: ${o}`)}else alert("Node not found!")}(o)}),`as-${o.toLowerCase()}`)}))}()})(); \ No newline at end of file +(()=>{"use strict";!function(){const t=Object.freeze({PDF:"pdf"}),e={target:null,type:t.PDF};function n(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}function o(t){return t.replace(/\s+/g," ").trim()}document.addEventListener("contextmenu",(function(t){var r,i,l,d,u,c,s,a,f,p,g;const v=o(null!==(g=null!==(c=null!==(l=null===(i=null===(r=window.getSelection)||void 0===r?void 0:r.call(window))||void 0===i?void 0:i.toString())&&void 0!==l?l:null===(u=null===(d=document.getSelection)||void 0===d?void 0:d.call(document))||void 0===u?void 0:u.toString())&&void 0!==c?c:null===(p=null===(f=null===(a=null===(s=Object.getOwnPropertyDescriptor(document,"selection"))||void 0===s?void 0:s.value)||void 0===a?void 0:a.createRange)||void 0===f?void 0:f.call(a))||void 0===p?void 0:p.text)&&void 0!==g?g:"");e.target=n(t.target,(t=>o(t.innerText).includes(v)))})),Object.values(t).forEach((o=>{window.GM_registerMenuCommand(`As ${o.toUpperCase()}`,(()=>{!function(o){if(e.target){if(o===t.PDF)return function(t){const e=window.open("","","width=800,height=600");if(!e)return void alert("Please allow popups for this site and try again.");const o=e.document,r=function(t,e){function n(e,n){const o=t.getComputedStyle(e);for(const t of o)n.style.setProperty(t,o.getPropertyValue(t))}const o=e.cloneNode(!0);return n(e,o),function t(e,o){const r=e;for(let e=0;e{if(!(t instanceof Element))return!1;const n=window.getComputedStyle(t).backgroundColor;if(!n)return!1;if(n===e)return!1;const o=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);return!o||0!==(o[4]?parseFloat(o[4]):1)}));return o?window.getComputedStyle(o).getPropertyValue("background-color"):e}(t),e.setTimeout((()=>e.print()),1e3),e.addEventListener("afterprint",(function(){this.confirm("Close window after successful print?")&&e.close()}))}(e.target);alert(`Unsupported type: ${o}`)}else alert("Node not found!")}(o)}),`as-${o.toLowerCase()}`)}))}()})(); \ No newline at end of file diff --git a/github-file-preview-apib.user.js b/github-file-preview-apib.user.js index a2f91818..5cf5b87e 100644 --- a/github-file-preview-apib.user.js +++ b/github-file-preview-apib.user.js @@ -1,21 +1,21 @@ // ==UserScript== // @name GitHub File Preview APIB // @description Render Apiary blueprint files in github -// @version 1.4.0 +// @version 1.4.1 // @author iamogbz // @homepage https://github.com/iamogbz/oh-my-scripts // @supportURL https://github.com/iamogbz/oh-my-scripts/issues // @include *://github.com/* -// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/github-file-preview-apib.user.js +// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/github-file-preview-apib.user.js // @grant GM_xmlhttpRequest // @icon https://github.com/iamogbz/oh-my-scripts/raw/main/assets/monkey_128.png // @namespace iamogbz/oh-my-scripts -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/dom.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/github-file.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/github.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/paths.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/request.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/ns.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/dom.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/github-file.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/github.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/paths.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/request.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/ns.js // @updateURL https://github.com/iamogbz/oh-my-scripts/raw/gh-pages/github-file-preview-apib.user.js // ==/UserScript== diff --git a/github-file-preview-html.user.js b/github-file-preview-html.user.js index ba5de8dd..3f486284 100644 --- a/github-file-preview-html.user.js +++ b/github-file-preview-html.user.js @@ -1,23 +1,23 @@ // ==UserScript== // @name GitHub File Preview HTML // @description Render HTML files in github -// @version 1.4.0 +// @version 1.4.1 // @author iamogbz // @homepage https://github.com/iamogbz/oh-my-scripts // @supportURL https://github.com/iamogbz/oh-my-scripts/issues // @include *://github.com/* -// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/github-file-preview-html.user.js +// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/github-file-preview-html.user.js // @grant GM_xmlhttpRequest // @icon https://github.com/iamogbz/oh-my-scripts/raw/main/assets/monkey_128.png // @namespace iamogbz/oh-my-scripts -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/dom.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/github-file.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/github.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/paths.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/request.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/ns.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/npm/.pnpm.js -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/dom-inline.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/dom.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/github-file.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/github.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/paths.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/request.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/ns.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/npm/.pnpm.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/dom-inline.js // @updateURL https://github.com/iamogbz/oh-my-scripts/raw/gh-pages/github-file-preview-html.user.js // ==/UserScript== diff --git a/no-window-open.user.js b/no-window-open.user.js index b28a98fc..ff45b615 100644 --- a/no-window-open.user.js +++ b/no-window-open.user.js @@ -1,16 +1,16 @@ // ==UserScript== // @name No Window Open // @description Blocks window open -// @version 1.4.0 +// @version 1.4.1 // @author iamogbz // @homepage https://github.com/iamogbz/oh-my-scripts // @supportURL https://github.com/iamogbz/oh-my-scripts/issues // @match *://*/* -// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/no-window-open.user.js +// @downloadURL https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/no-window-open.user.js // @grant none // @icon https://github.com/iamogbz/oh-my-scripts/raw/main/assets/monkey_128.png // @namespace iamogbz/oh-my-scripts -// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.0/lib/dom.js +// @require https://github.com/iamogbz/oh-my-scripts/raw/1.4.1/lib/dom.js // @require https://raw.githubusercontent.com/Martii/UserScripts/d8d8829/lib/GM_setStyle/GM_setStyle.js // @updateURL https://github.com/iamogbz/oh-my-scripts/raw/gh-pages/no-window-open.user.js // ==/UserScript==