Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Locussta/71b08f3a280efeabc3544d39791c3ca5 to your computer and use it in GitHub Desktop.

Select an option

Save Locussta/71b08f3a280efeabc3544d39791c3ca5 to your computer and use it in GitHub Desktop.

Revisions

  1. @evandrocoan evandrocoan revised this gist Sep 14, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -137,7 +137,9 @@
    let expandbutton = $('div[data-tooltip="Show trimmed content"]');
    setTimeout(keepopening, 500);
    expandbutton.click();
    if( expandbutton.length ) {
    expandbutton.click();
    }
    }
    setTimeout(keepopening, 500);
    })();
  2. @evandrocoan evandrocoan revised this gist Aug 25, 2021. 1 changed file with 0 additions and 9 deletions.
    9 changes: 0 additions & 9 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -124,15 +124,6 @@
    if(viewedbar.length) {
    viewedbar.click();
    }
    // $('div[data-tooltip="Show trimmed content"]').each(function(index, item) {
    // $(item).click();
    // })
    let expandbutton = $('div[data-tooltip="Show trimmed content"]');
    console.log(`ddd ${expandbutton}`)
    if(expandbutton.length) {
    expandbutton.click();
    }
    return false;
    };
    viewedbar.on('click', previousItem);
  3. @evandrocoan evandrocoan revised this gist Aug 25, 2021. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -124,6 +124,15 @@
    if(viewedbar.length) {
    viewedbar.click();
    }
    // $('div[data-tooltip="Show trimmed content"]').each(function(index, item) {
    // $(item).click();
    // })
    let expandbutton = $('div[data-tooltip="Show trimmed content"]');
    console.log(`ddd ${expandbutton}`)
    if(expandbutton.length) {
    expandbutton.click();
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    @@ -132,6 +141,14 @@
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    let keepopening = async () => {
    let expandbutton = $('div[data-tooltip="Show trimmed content"]');
    setTimeout(keepopening, 500);
    expandbutton.click();
    }
    setTimeout(keepopening, 500);
    })();
    ```

  4. @evandrocoan evandrocoan revised this gist Aug 23, 2021. 1 changed file with 42 additions and 2 deletions.
    44 changes: 42 additions & 2 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -401,7 +401,7 @@
    // @version 0.1
    // @description https://github.com/sindresorhus/refined-github/issues/3061
    // @author You
    //
    // https://meta.stackexchange.com/questions/81379/can-we-have-a-list-of-all
    // @include https://*last.fm/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    @@ -422,15 +422,55 @@
    deleteElement('.top-bar');
    function deleteElement(selector) {
    let delayed = () => {
    // Avoid reprocessing when on background/not focused
    if (document.hasFocus()) {
    // console.log('Tab is active');
    }
    else {
    // console.log('Tab is not active');
    setTimeout(delayed, 1000);
    return;
    }
    let element = $(String(selector));
    if(element.length) {
    console.log(`Deleting '${element.text().replace(/\s+/g, ' ').trim()}' button`);
    console.log(`Deleting element '${element.text().replace(/\s+/g, ' ').trim()}' button`);
    element.remove();
    }
    setTimeout(delayed, 2000);
    }
    setTimeout(delayed, 200);
    }
    $('#content').css({'padding-top': '0px'});
    if( String(window.location.href).toLowerCase().includes('ironhead4life') ) {
    setTimeout(fixScrobleLink, 1000);
    }
    function fixScrobleLink() {
    // Avoid reprocessing when on background/not focused
    if (document.hasFocus()) {
    // console.log('Tab is active');
    }
    else {
    // console.log('Tab is not active');
    setTimeout(fixScrobleLink, 1000);
    return;
    }
    $('.chartlist-name>a').each(function(index, item) {
    // console.log(index)
    let newitem = $(item).attr('href');
    if( ! String(newitem).includes('IronHead4Life') ) {
    let newitemsrc = String(newitem).replace('/music/', '/user/IronHead4Life/library/music/');
    // console.log(newitemsrc);
    $(item).attr('href', newitemsrc);
    $(item).attr ('target', '_blank');
    }
    });
    setTimeout(fixScrobleLink, 1000);
    }
    })();
    ```

  5. @evandrocoan evandrocoan revised this gist Aug 9, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -163,12 +163,14 @@
    let keepclosing = async () => {
    let viewedbar = $('div[aria-label="Refresh"]');
    console.log(viewedbar);
    if(viewedbar.length)
    {
    console.log('Clicking refresh');
    viewedbar.click();
    }
    else {
    console.log(viewedbar);
    }
    }
    setInterval(keepclosing, 5000);
    })();
  6. @evandrocoan evandrocoan revised this gist Aug 8, 2021. 1 changed file with 207 additions and 209 deletions.
    416 changes: 207 additions & 209 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -57,37 +57,36 @@


    1. **Fix GitHub snippet edit small size**
    ```js

    // ==UserScript==
    // @name Fix GitHub snippet edit small size
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description try to take over the world!
    // @author You
    // @match https://gist.github.com/evandrocoan/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[class="CodeMirror cm-s-github-light CodeMirror-wrap"]').not('span[data-donot-process-this-again]');
    ```js
    // ==UserScript==
    // @name Fix GitHub snippet edit small size
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description try to take over the world!
    // @author You
    // @match https://gist.github.com/evandrocoan/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    viewedbar.css("height", "700px");
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[class="CodeMirror cm-s-github-light CodeMirror-wrap"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    viewedbar.css("height", "700px");
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();


    ```
    ```



    @@ -98,43 +97,43 @@


    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');
    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    // let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"]').filter(function() {
    // return $(this).attr('data-tooltip').match(/.*Back.*/);
    // });
    let viewedbar = $('div[data-tooltip="All Mail"]');
    if(viewedbar.length) {
    viewedbar.click();
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');
    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    // let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"]').filter(function() {
    // return $(this).attr('data-tooltip').match(/.*Back.*/);
    // });
    let viewedbar = $('div[data-tooltip="All Mail"]');
    if(viewedbar.length) {
    viewedbar.click();
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```



    @@ -147,33 +146,33 @@


    1. **Force GMail Archive refresh page every 5 seconds**
    ```js
    // ==UserScript==
    // @name Force GMail Archive refresh page every 5 seconds
    // @namespace *
    // @version 0.1
    // @description This is because on Linux the page some times takes long time to refresh
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[aria-label="Refresh"]');
    console.log(viewedbar);
    if(viewedbar.length)
    {
    console.log('Clicking refresh');
    viewedbar.click();
    }
    ```js
    // ==UserScript==
    // @name Force GMail Archive refresh page every 5 seconds
    // @namespace *
    // @version 0.1
    // @description This is because on Linux the page some times takes long time to refresh
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[aria-label="Refresh"]');
    console.log(viewedbar);
    if(viewedbar.length)
    {
    console.log('Clicking refresh');
    viewedbar.click();
    }
    setInterval(keepclosing, 5000);
    })();
    ```
    }
    setInterval(keepclosing, 5000);
    })();
    ```



    @@ -186,56 +185,56 @@


    1. **Remove youtube channels logo and always show all videos**
    ```js
    // ==UserScript==
    // @name Remove youtube channels logo and always show all videos
    // @namespace *
    // @version 0.1
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app-using-tampermonkey
    // @author You
    //
    // @include https://*youtube.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    ```js
    // ==UserScript==
    // @name Remove youtube channels logo and always show all videos
    // @namespace *
    // @version 0.1
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app-using-tampermonkey
    // @author You
    //
    // @include https://*youtube.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let showmoreregex = new RegExp("Show \\d+ more"); // expression here
    (function() {
    'use strict';
    let showmoreregex = new RegExp("Show \\d+ more"); // expression here
    let keepclosing = async () => {
    let menubuttons = $('tp-yt-paper-tab');
    let keepclosing = async () => {
    let menubuttons = $('tp-yt-paper-tab');
    if( menubuttons.length ) {
    // console.log("removing running...");
    let videosButton = menubuttons[1];
    let ariaSelected = $(videosButton).attr('aria-selected');
    if( menubuttons.length ) {
    // console.log("removing running...");
    let videosButton = menubuttons[1];
    let ariaSelected = $(videosButton).attr('aria-selected');
    // console.log(`ariaSelected ${ariaSelected}`);
    if( ariaSelected == 'false' ) {
    menubuttons[1].click();
    }
    // console.log(`ariaSelected ${ariaSelected}`);
    if( ariaSelected == 'false' ) {
    menubuttons[1].click();
    }
    // delete youtube useless top bar/logo
    let topbar = $('.style-scope.ytd-c4-tabbed-header-renderer');
    if(topbar.length) {
    topbar.hide();
    }
    }
    // delete youtube useless top bar/logo
    let topbar = $('.style-scope.ytd-c4-tabbed-header-renderer');
    if(topbar.length) {
    topbar.hide();
    }
    }
    let showmorebutton = $('tp-yt-paper-item[class="style-scope ytd-guide-entry-renderer"]').filter(function () {
    return showmoreregex.test($(this).text());
    });
    let showmorebutton = $('tp-yt-paper-item[class="style-scope ytd-guide-entry-renderer"]').filter(function () {
    return showmoreregex.test($(this).text());
    });
    // console.log(`showmorebutton ${showmorebutton.text()}`);
    if( showmorebutton.length ) {
    showmorebutton[0].click();
    }
    // console.log(`showmorebutton ${showmorebutton.text()}`);
    if( showmorebutton.length ) {
    showmorebutton[0].click();
    }
    setTimeout(keepclosing, 1000);
    }
    setTimeout(keepclosing, 1000);
    })();
    ```
    setTimeout(keepclosing, 1000);
    }
    setTimeout(keepclosing, 1000);
    })();
    ```



    @@ -247,36 +246,36 @@


    1. **Remove youtube viewed videos**
    ```js
    // ==UserScript==
    // @name Remove youtube viewed videos
    // @namespace *
    // @version 0.1
    // @description https://webapps.stackexchange.com/questions/145612/how-to-stop-the
    // @author You
    //
    // @include https://*youtube.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    ```js
    // ==UserScript==
    // @name Remove youtube viewed videos
    // @namespace *
    // @version 0.1
    // @description https://webapps.stackexchange.com/questions/145612/how-to-stop-the
    // @author You
    //
    // @include https://*youtube.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('.style-scope.ytd-thumbnail-overlay-resume-playback-renderer');
    if(viewedbar.length) {
    // console.log("removing running...");
    let parent = viewedbar.closest('.style-scope.ytd-rich-grid-renderer');
    if(parent.length) {
    // use hide instead of remove to avoid mass flickering of the page
    parent.hide();
    }
    }
    // console.log("running");
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('.style-scope.ytd-thumbnail-overlay-resume-playback-renderer');
    if(viewedbar.length) {
    // console.log("removing running...");
    let parent = viewedbar.closest('.style-scope.ytd-rich-grid-renderer');
    if(parent.length) {
    // use hide instead of remove to avoid mass flickering of the page
    parent.hide();
    }
    }
    // console.log("running");
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```



    @@ -286,52 +285,52 @@


    1. **Close GitHub Notifications bar**
    ```js
    // ==UserScript==
    // @name Close GitHub Notifications bar
    // @namespace *
    // @version 0.1
    // @description https://github.com/sindresorhus/refined-github/issues/3061
    // https://gist.github.com/evandrocoan/0e25dd233f3f99352a8147041809ba8d
    //
    // @author You
    // @include http://*github.com/*
    // @include https://*github.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    clickButton('button[aria-label="Close notification controls"].btn-octicon.js-flash-close');
    deleteElement('.js-sticky.js-sticky-offset-scroll.top-0.gh-header-sticky.is-stuck');
    // http://en.enisozgen.com/hide-github-academic-discount-coupon-error/
    deleteElement('.flash.flash-full.js-notice.flash-error');
    function deleteElement(selector) {
    let delayed = () => {
    let element = $(String(selector));
    if(element.length) {
    console.log(`Deleting '${element.text().replace(/\s+/g, ' ').trim()}' button`);
    element.remove();
    }
    setTimeout(delayed, 2000);
    }
    setTimeout(delayed, 2000);
    }
    function clickButton(selector) {
    let delayed = () => {
    let element = $(String(selector));
    if(element.length) {
    console.log(`Closing element '${element.html()}' button`);
    element.click();
    }
    setTimeout(delayed, 2000);
    }
    setTimeout(delayed, 2000);
    }
    })();
    ```
    ```js
    // ==UserScript==
    // @name Close GitHub Notifications bar
    // @namespace *
    // @version 0.1
    // @description https://github.com/sindresorhus/refined-github/issues/3061
    // https://gist.github.com/evandrocoan/0e25dd233f3f99352a8147041809ba8d
    //
    // @author You
    // @include http://*github.com/*
    // @include https://*github.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    clickButton('button[aria-label="Close notification controls"].btn-octicon.js-flash-close');
    deleteElement('.js-sticky.js-sticky-offset-scroll.top-0.gh-header-sticky.is-stuck');
    // http://en.enisozgen.com/hide-github-academic-discount-coupon-error/
    deleteElement('.flash.flash-full.js-notice.flash-error');
    function deleteElement(selector) {
    let delayed = () => {
    let element = $(String(selector));
    if(element.length) {
    console.log(`Deleting '${element.text().replace(/\s+/g, ' ').trim()}' button`);
    element.remove();
    }
    setTimeout(delayed, 2000);
    }
    setTimeout(delayed, 2000);
    }
    function clickButton(selector) {
    let delayed = () => {
    let element = $(String(selector));
    if(element.length) {
    console.log(`Closing element '${element.html()}' button`);
    element.click();
    }
    setTimeout(delayed, 2000);
    }
    setTimeout(delayed, 2000);
    }
    })();
    ```



    @@ -531,4 +530,3 @@
    * Utilities to create and open lists of tabs.
    1. TabCopy
    * Quickly copy tabs to the clipboard
  7. @evandrocoan evandrocoan revised this gist Aug 8, 2021. 1 changed file with 25 additions and 26 deletions.
    51 changes: 25 additions & 26 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -148,32 +148,31 @@

    1. **Force GMail Archive refresh page every 5 seconds**
    ```js
    // ==UserScript==
    // @name Force GMail Archive refresh page every 5 seconds
    // @namespace *
    // @version 0.1
    // @description This is because on Linux the page some times takes long time to refresh
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Refresh"][tabindex="0"]');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    // console.log('Clicking refresh');
    viewedbar.click();
    }
    setTimeout(keepclosing, 5000);
    }
    setTimeout(keepclosing, 5000);
    })();
    // ==UserScript==
    // @name Force GMail Archive refresh page every 5 seconds
    // @namespace *
    // @version 0.1
    // @description This is because on Linux the page some times takes long time to refresh
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[aria-label="Refresh"]');
    console.log(viewedbar);
    if(viewedbar.length)
    {
    console.log('Clicking refresh');
    viewedbar.click();
    }
    }
    setInterval(keepclosing, 5000);
    })();
    ```


  8. @evandrocoan evandrocoan revised this gist Jun 30, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -470,6 +470,8 @@
    1. Mute Tab 1.4
    * Restores the 'Mute Tab' functionality of versions prior to Chrome 71.
    1. Refined GitHub
    * Simplifies the GitHub interface and adds useful features
  9. @evandrocoan evandrocoan revised this gist Jun 26, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -439,8 +439,8 @@





    1. W Zoom, 1.0.17
    * A Chrome extension which can perform per-tab/per-origin/per-path zooming
    1. Discourse Forum Notifications
    * Shows notifications of all added discourse forum sites. Version 1.1.4
    * https://meta.discourse.org/t/discourse-push-notifications-for-desktop/86941
  10. @evandrocoan evandrocoan revised this gist Jun 19, 2021. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -27,12 +27,11 @@


    1. https://www.chanhvuong.com/3954/disable-annoying-chrome-media-control-key-extension-to-windows-10-volume-osd/
    To disable Chrome’s media control key extension to the Windows 10 volume OSD, follow these steps:

    Using Chrome, browse to “chrome://flags/” to access the experimental hidden settings.
    Search for the “Hardware Media Key Handling” function.
    Disable it by changing the dropdown selection from Default to Disabled.
    Click the “Relaunch Now” button on the popup at the bottom.
    1. To disable Chrome’s media control key extension to the Windows 10 volume OSD, follow these steps:
    1. Using Chrome, browse to “chrome://flags/” to access the experimental hidden settings.
    1. Search for the “Hardware Media Key Handling” function.
    1. Disable it by changing the dropdown selection from Default to Disabled.
    1. Click the “Relaunch Now” button on the popup at the bottom.



  11. @evandrocoan evandrocoan revised this gist Jun 19, 2021. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -27,12 +27,12 @@


    1. https://www.chanhvuong.com/3954/disable-annoying-chrome-media-control-key-extension-to-windows-10-volume-osd/
    To disable Chrome’s media control key extension to the Windows 10 volume OSD, follow these steps:
    To disable Chrome’s media control key extension to the Windows 10 volume OSD, follow these steps:

    Using Chrome, browse to “chrome://flags/” to access the experimental hidden settings.
    Search for the “Hardware Media Key Handling” function.
    Disable it by changing the dropdown selection from Default to Disabled.
    Click the “Relaunch Now” button on the popup at the bottom.
    Using Chrome, browse to “chrome://flags/” to access the experimental hidden settings.
    Search for the “Hardware Media Key Handling” function.
    Disable it by changing the dropdown selection from Default to Disabled.
    Click the “Relaunch Now” button on the popup at the bottom.



  12. @evandrocoan evandrocoan revised this gist Jun 19, 2021. 1 changed file with 21 additions and 1 deletion.
    22 changes: 21 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,27 @@
    ```






    1. https://www.chanhvuong.com/3954/disable-annoying-chrome-media-control-key-extension-to-windows-10-volume-osd/
    To disable Chrome’s media control key extension to the Windows 10 volume OSD, follow these steps:

    Using Chrome, browse to “chrome://flags/” to access the experimental hidden settings.
    Search for the “Hardware Media Key Handling” function.
    Disable it by changing the dropdown selection from Default to Disabled.
    Click the “Relaunch Now” button on the popup at the bottom.










    1. Tampermonkey
    * The world's most popular userscript manager
    * https://github.com/CertainPerformance/Stack-Exchange-Userscripts/raw/master/Preview-Antifocus/StackPreviewAntifocus.user.js
    @@ -36,7 +57,6 @@




    1. **Fix GitHub snippet edit small size**
    ```js

  13. @evandrocoan evandrocoan revised this gist May 26, 2021. 1 changed file with 54 additions and 0 deletions.
    54 changes: 54 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -73,6 +73,60 @@








    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');
    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    // let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"]').filter(function() {
    // return $(this).attr('data-tooltip').match(/.*Back.*/);
    // });
    let viewedbar = $('div[data-tooltip="All Mail"]');
    if(viewedbar.length) {
    viewedbar.click();
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```











    1. **Force GMail Archive refresh page every 5 seconds**
    ```js
    // ==UserScript==
  14. @evandrocoan evandrocoan revised this gist May 25, 2021. 1 changed file with 0 additions and 54 deletions.
    54 changes: 0 additions & 54 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -110,60 +110,6 @@



    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');
    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    // let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"]').filter(function() {
    // return $(this).attr('data-tooltip').match(/.*Back.*/);
    // });
    let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"][act="19"]')
    if(viewedbar.length) {
    window.history.go(-1);
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```














  15. @evandrocoan evandrocoan revised this gist May 18, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -139,7 +139,7 @@
    // });
    let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"][act="19"]')
    if(viewedbar.length) {
    setTimeout(function() { window.history.go(-1); }, 0);
    window.history.go(-1);
    }
    return false;
    };
  16. @evandrocoan evandrocoan revised this gist May 17, 2021. 1 changed file with 30 additions and 0 deletions.
    30 changes: 30 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -73,6 +73,36 @@



    1. **Force GMail Archive refresh page every 5 seconds**
    ```js
    // ==UserScript==
    // @name Force GMail Archive refresh page every 5 seconds
    // @namespace *
    // @version 0.1
    // @description This is because on Linux the page some times takes long time to refresh
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Refresh"][tabindex="0"]');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    // console.log('Clicking refresh');
    viewedbar.click();
    }
    setTimeout(keepclosing, 5000);
    }
    setTimeout(keepclosing, 5000);
    })();
    ```




  17. @evandrocoan evandrocoan revised this gist May 11, 2021. 1 changed file with 44 additions and 0 deletions.
    44 changes: 44 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,50 @@




    1. **Fix GitHub snippet edit small size**
    ```js

    // ==UserScript==
    // @name Fix GitHub snippet edit small size
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description try to take over the world!
    // @author You
    // @match https://gist.github.com/evandrocoan/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[class="CodeMirror cm-s-github-light CodeMirror-wrap"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    viewedbar.css("height", "700px");
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();


    ```











    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
  18. @evandrocoan evandrocoan revised this gist May 11, 2021. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -60,7 +60,10 @@
    if(viewedbar.length)
    {
    let previousItem = function() {
    let viewedbar = $('div[data-tooltip="Back to Inbox"][tabindex="0"] , div[data-tooltip="Back to All Mail"][tabindex="0"]');
    // let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"]').filter(function() {
    // return $(this).attr('data-tooltip').match(/.*Back.*/);
    // });
    let viewedbar = $('div[data-tooltip][tabindex="0"][role="button"][act="19"]')
    if(viewedbar.length) {
    setTimeout(function() { window.history.go(-1); }, 0);
    }
    @@ -74,6 +77,7 @@
    setTimeout(keepclosing, 500);
    })();


    ```


  19. @evandrocoan evandrocoan revised this gist May 11, 2021. 1 changed file with 34 additions and 34 deletions.
    68 changes: 34 additions & 34 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -39,40 +39,40 @@
    1. **Force GMail Archive button to go to back after clicking on it**
    ```js

    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    let viewedbar = $('div[data-tooltip="Back to Inbox"][tabindex="0"] , div[data-tooltip="Back to All Mail"][tabindex="0"]');
    if(viewedbar.length) {
    setTimeout(function() { window.history.go(-1); }, 0);
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    let viewedbar = $('div[data-tooltip="Back to Inbox"][tabindex="0"] , div[data-tooltip="Back to All Mail"][tabindex="0"]');
    if(viewedbar.length) {
    setTimeout(function() { window.history.go(-1); }, 0);
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();

    ```

  20. @evandrocoan evandrocoan revised this gist May 11, 2021. 1 changed file with 35 additions and 30 deletions.
    65 changes: 35 additions & 30 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -38,37 +38,42 @@

    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    setTimeout(function() { window.history.go(-1); }, 0);
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    let viewedbar = $('div[data-tooltip="Back to Inbox"][tabindex="0"] , div[data-tooltip="Back to All Mail"][tabindex="0"]');
    if(viewedbar.length) {
    setTimeout(function() { window.history.go(-1); }, 0);
    }
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();

    ```


  21. @evandrocoan evandrocoan revised this gist May 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -59,7 +59,7 @@
    if(viewedbar.length)
    {
    let previousItem = function() {
    setTimeout(function() { window.history.go(-1); }, 1000);
    setTimeout(function() { window.history.go(-1); }, 0);
    return false;
    };
    viewedbar.on('click', previousItem);
  22. @evandrocoan evandrocoan revised this gist May 8, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@
    * The world's most popular userscript manager
    * https://github.com/CertainPerformance/Stack-Exchange-Userscripts/raw/master/Preview-Antifocus/StackPreviewAntifocus.user.js
    * https://github.com/CertainPerformance/Stack-Exchange-Userscripts/raw/master/Three-Columns/dist/StackThreeColumns.user.js

    * https://stackapps.com/questions/4486/the-stack-overflow-unofficial-patch-soup



  23. @evandrocoan evandrocoan revised this gist May 8, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,8 @@

    1. Tampermonkey
    * The world's most popular userscript manager

    * https://github.com/CertainPerformance/Stack-Exchange-Userscripts/raw/master/Preview-Antifocus/StackPreviewAntifocus.user.js
    * https://github.com/CertainPerformance/Stack-Exchange-Userscripts/raw/master/Three-Columns/dist/StackThreeColumns.user.js



  24. @evandrocoan evandrocoan revised this gist May 8, 2021. 1 changed file with 49 additions and 0 deletions.
    49 changes: 49 additions & 0 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,55 @@




    1. **Force GMail Archive button to go to back after clicking on it**
    ```js
    // ==UserScript==
    // @name Force GMail Archive button to go to back after clicking on it
    // @namespace *
    // @version 0.1
    // @description Force GMail Archive button to go to back after clicking on it
    // @author Evandro Coan
    //
    // @include https://mail.google.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==

    (function() {
    'use strict';
    let keepclosing = async () => {
    let viewedbar = $('div[data-tooltip="Archive"][tabindex="0"]').not('span[data-donot-process-this-again]');

    // console.log('running');
    // console.log(viewedbar);
    if(viewedbar.length)
    {
    let previousItem = function() {
    setTimeout(function() { window.history.go(-1); }, 1000);
    return false;
    };
    viewedbar.on('click', previousItem);
    viewedbar.attr('data-donot-process-this-again', true);
    }
    setTimeout(keepclosing, 500);
    }
    setTimeout(keepclosing, 500);
    })();
    ```














    1. **Remove youtube channels logo and always show all videos**
    ```js
    // ==UserScript==
  25. @evandrocoan evandrocoan revised this gist Apr 16, 2021. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -302,8 +302,6 @@
    * Stop Backspace returning to previous page
    1. Google Docs Offline
    * Get things done offline with the Google Docs family of products.
    1. Helper for GitHub notifications in Gmail
    * Add links to GitHub threads and shortcuts to your Gmail interface.
    1. Isometric Contributions
    * Renders an isometric pixel view of GitHub contribution graphs.
    1. Notifier for GitHub
  26. @evandrocoan evandrocoan revised this gist Apr 14, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -194,7 +194,7 @@
    // @name Close Stackexchange Up Vote Notifications bar
    // @namespace *
    // @version 0.1
    // @description https://github.com/sindresorhus/refined-github/issues/3061
    // @description https://meta.stackexchange.com/questions/89045/disable
    // @author You
    //
    // https://meta.stackexchange.com/questions/81379/can-we-have-a-list-of-all
  27. @evandrocoan evandrocoan revised this gist Apr 14, 2021. 1 changed file with 42 additions and 36 deletions.
    78 changes: 42 additions & 36 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -189,43 +189,49 @@


    1. **Close stackexchange up vote beg bar**
    ```js
    // ==UserScript==
    // @name Close Stackexchange Up Vote Notifications bar
    // @namespace *
    // @version 0.1
    // @description https://meta.stackexchange.com/questions/89045/disable
    // @author You
    //
    // https://meta.stackexchange.com/questions/81379/can-we-have-a-list-of-all
    // @include https://*askubuntu.com/*
    // @include https://*mathoverflow.net/*
    // @include https://*blogoverflow.com/*
    // @include https://*serverfault.com/*
    // @include https://*stackoverflow.com/*
    // @include https://*stackexchange.com/*
    // @include https://*stackapps.com/*
    // @include https://*stackmod.blog/*
    // @include https://*stackoverflow.blog/*
    // @include https://*stackoverflowbusiness.com/*
    // @include https://*superuser.com/*
    // @include https://*tex-talk.net/*
    // @include https://*thesffblog.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    ```js
    // ==UserScript==
    // @name Close Stackexchange Up Vote Notifications bar
    // @namespace *
    // @version 0.1
    // @description https://github.com/sindresorhus/refined-github/issues/3061
    // @author You
    //
    // https://meta.stackexchange.com/questions/81379/can-we-have-a-list-of-all
    // @include https://*askubuntu.com/*
    // @include https://*mathoverflow.net/*
    // @include https://*blogoverflow.com/*
    // @include https://*serverfault.com/*
    // @include https://*stackoverflow.com/*
    // @include https://*stackexchange.com/*
    // @include https://*stackapps.com/*
    // @include https://*stackmod.blog/*
    // @include https://*stackoverflow.blog/*
    // @include https://*stackoverflowbusiness.com/*
    // @include https://*superuser.com/*
    // @include https://*tex-talk.net/*
    // @include https://*thesffblog.com/*
    // @require http://code.jquery.com/jquery-3.4.1.min.js
    // ==/UserScript==
    (function() {
    'use strict';
    let keepclosing = async () => {
    let closebutton = $('#overlay-header');
    if(closebutton.length) {
    console.log('Close Stackexchange Up Vote Notifications bar');
    closebutton.remove();
    setTimeout(keepclosing, 500);
    }
    }
    setTimeout(keepclosing, 500);
    })();
    (function() {
    'use strict';
    let keepclosing = async () => {
    let closebutton = $('#overlay-header');
    if(closebutton.length) {
    console.log('Close Stackexchange Up Vote Notifications bar');
    closebutton.remove();
    setTimeout(keepclosing, 2000);
    }
    let begteampromotion = $('.teams-promo.overflow-hidden.z-active.bs-md.bg-black-750.fc-white.fs-body2.js-teams-promo');
    if(begteampromotion.length) {
    console.log('Close Stackexchange Team Bag Notifications bar');
    begteampromotion.remove();
    setTimeout(keepclosing, 2000);
    }
    }
    setTimeout(keepclosing, 2000);
    })();
    ```


  28. @evandrocoan evandrocoan revised this gist Apr 14, 2021. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -364,5 +364,14 @@
    * Make scroll behavior smooth, ease-in-out manner, customizable with dynamically plotted curve. With bouncy edge feature.
    1. Calculadora de jornada - Ahgora
    * Adiciona uma tabela com informações adicionais e a hora estimada de saída do trabalho na pagina de batidas de ponto do ahgora.
    1. Google Calendar
    * Quick overview of your Google Calendar with one-click access to locations & documents
    1. Checker Plus for Google Calendar
    * See your next events, get meeting notifications and snooze events without opening the Google Calendar page!
    1. jQuery Inject
    * Injects jQuery in the page.
    1. Chrome extension source viewer
    * View source code of Chrome extensions, Firefox addons or Opera extensions (crx/nex/xpi) from the Chrome web store and elsewhere.
    1. OpenList
    * Utilities to create and open lists of tabs.
    1. TabCopy
    * Quickly copy tabs to the clipboard
  29. @evandrocoan evandrocoan revised this gist Apr 14, 2021. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@
    // @name Remove youtube channels logo and always show all videos
    // @namespace *
    // @version 0.1
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app-using-tampermonkey
    // @author You
    //
    // @include https://*youtube.com/*
    @@ -49,6 +49,8 @@

    (function() {
    'use strict';
    let showmoreregex = new RegExp("Show \\d+ more"); // expression here

    let keepclosing = async () => {
    let menubuttons = $('tp-yt-paper-tab');

    @@ -68,6 +70,16 @@
    topbar.hide();
    }
    }

    let showmorebutton = $('tp-yt-paper-item[class="style-scope ytd-guide-entry-renderer"]').filter(function () {
    return showmoreregex.test($(this).text());
    });

    // console.log(`showmorebutton ${showmorebutton.text()}`);
    if( showmorebutton.length ) {
    showmorebutton[0].click();
    }

    setTimeout(keepclosing, 1000);
    }
    setTimeout(keepclosing, 1000);
  30. @evandrocoan evandrocoan revised this gist Apr 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My Google Chrome Extensions.md
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@
    // @name Remove youtube channels logo and always show all videos
    // @namespace *
    // @version 0.1
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app-using-tampermonkey
    // @description https://stackoverflow.com/questions/60480918/how-to-simulate-click-in-react-app
    // @author You
    //
    // @include https://*youtube.com/*