Skip to content

Instantly share code, notes, and snippets.

@senpl
Last active July 6, 2017 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save senpl/552683d28e6a97293f5f1e9de486e7cd to your computer and use it in GitHub Desktop.
Save senpl/552683d28e6a97293f5f1e9de486e7cd to your computer and use it in GitHub Desktop.
phpmyadmin refresher for tempermonkey.
// ==UserScript==
// @name phpmyadmin refresher
// @namespace mu
// @include http*/phpmyadmin/*
// @include http*/oozoos3o/*
// @include http*/index.php?db=*
// @version 1.1
// @grant none
// @description refresh phpmyadmin tables every defined time
// ==/UserScript==
var aTags = document.getElementsByTagName("a");
var searchText = "Aktualisieren";
var found;
setInterval(function() {
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent == searchText) {
found = aTags[i];
found.click();
break;
}
}
}, 10000);
// ==UserScript==
// @name phpmyadmin refresher
// @namespace mu
// @include http*/phpmyadmin/*
// @include http*/oozoos3o/*
// @include http*/index.php?db=*
// @version 1.1
// @grant none
// @description Adds forever login to admin apps.
// ==/UserScript==
var aTags = document.getElementsByTagName("a");
var searchText = "Aktualisieren";
var found;
setInterval(function() {
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent == searchText) {
found = aTags[i];
found.click();
break;
}
}
}, 10000);
//setInterval(function() { $('a:contains("Aktualisieren")').click(); }, 10000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment