Skip to content

Commit

Permalink
gm-scripting-1-[Minor Updates 2021 #1]-fix indent char
Browse files Browse the repository at this point in the history
Signed-off-by: ollily <coding@glowa-net.com>
  • Loading branch information
ollily committed Jun 3, 2021
1 parent 86e3c7e commit 9770a2c
Show file tree
Hide file tree
Showing 9 changed files with 2,079 additions and 1,078 deletions.
6 changes: 4 additions & 2 deletions .run/10-grab_links [build].run.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="10-grab_links [build]" type="BatchConfigurationType" factoryName="Batch">
<configuration default="false" name="10-grab_links [build]" type="BatchConfigurationType" factoryName="Batch" activateToolWindowBeforeRun="false">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/grab_links" />
<option name="PARENT_ENVS" value="true" />
<module name="" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/release-build.cmd" />
<option name="PARAMETERS" value="" />
<method v="2" />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="01-gm_base [build]" run_configuration_type="BatchConfigurationType" />
</method>
</configuration>
</component>
10 changes: 6 additions & 4 deletions gm_base/gm_base.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(gmGetAtI(curlink, "href"));
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML.replace("\\n", "").replace("#", ""));
Expand All @@ -1224,8 +1225,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(curlink.text);
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML);
Expand All @@ -1252,7 +1254,7 @@ function gmFindLinksInPage(sea, withDesc) {
function gmFindLinksInPage0(arrText, sea) {
var found = false;
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var i=0; i < arrText.length; i++) {
var searchText = arrText[i];
try {
Expand All @@ -1278,7 +1280,7 @@ function gmFindLinksInPage0(arrText, sea) {
function gmFindLinksInPage1(arrText) {
var searchTextClean = new Array("", "", "");
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var idxST = 0; idxST < arrText.length; idxST++) {
var aEle = arrText[idxST];
if (aEle != null) {
Expand Down
10 changes: 6 additions & 4 deletions gm_base/tpl/tpl_base-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(gmGetAtI(curlink, "href"));
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML.replace("\\n", "").replace("#", ""));
Expand All @@ -187,8 +188,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(curlink.text);
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML);
Expand All @@ -215,7 +217,7 @@ function gmFindLinksInPage(sea, withDesc) {
function gmFindLinksInPage0(arrText, sea) {
var found = false;
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var i=0; i < arrText.length; i++) {
var searchText = arrText[i];
try {
Expand All @@ -241,7 +243,7 @@ function gmFindLinksInPage0(arrText, sea) {
function gmFindLinksInPage1(arrText) {
var searchTextClean = new Array("", "", "");
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var idxST = 0; idxST < arrText.length; idxST++) {
var aEle = arrText[idxST];
if (aEle != null) {
Expand Down
43 changes: 24 additions & 19 deletions grab_links/82191.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

/*
Changes:
2021-06-03
- switch to different IDE
- clean code
2014-05-28
- some layout fixes
- overlays the yt header
Expand Down Expand Up @@ -1237,8 +1241,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(gmGetAtI(curlink, "href"));
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML.replace("\\n", "").replace("#", ""));
Expand All @@ -1260,8 +1265,9 @@ function gmFindLinksInPage(sea, withDesc) {
var searchText = new Array();
searchText.push(curlink.text);
if (withDesc != 0) {
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "title"));
searchText.push(gmGetAtI(curlink, "alt"));
searchText.push(gmGetAtI(curlink, "aria-label"));
searchText.push(gmGetAtI(curlink, "onmouseover"));
searchText.push(gmGetAtI(curlink, "onclick"));
searchText.push(curlink.innerHTML);
Expand All @@ -1288,7 +1294,7 @@ function gmFindLinksInPage(sea, withDesc) {
function gmFindLinksInPage0(arrText, sea) {
var found = false;
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var i=0; i < arrText.length; i++) {
var searchText = arrText[i];
try {
Expand All @@ -1314,7 +1320,7 @@ function gmFindLinksInPage0(arrText, sea) {
function gmFindLinksInPage1(arrText) {
var searchTextClean = new Array("", "", "");
if (gmIsArray(arrText)) {
//alert(arrText.join("\n"));
//alert(arrText.join("\n----\n"));
for (var idxST = 0; idxST < arrText.length; idxST++) {
var aEle = arrText[idxST];
if (aEle != null) {
Expand Down Expand Up @@ -1987,9 +1993,9 @@ var initFilter;

var bshow = '\\/';
var bhide = '/\\';
var hmin = '25px';
var hmax = '99.5%';
var hmaxauto = 'auto';
var hmin = '27px';
var hmax = '99%';
var hmaxauto = '99%';
var hmaxlh = 14;
var h_on = -1;
var h_off = -2;
Expand Down Expand Up @@ -2373,31 +2379,30 @@ function lgm_addKnownSites() {
function lgm_addStyles() {
// the main container
var style = new Array();
style.push('#gl-container {position:fixed; top:0px; right:1px; margin:0px; padding:0px !important; text-align:left; vertical-align:top; width:225px; max-height:99.5% !important; overflow:hidden !important; z-index:2999999999 !important;}');
style.push('#gl-container {position:fixed; top:0px; right:1px; margin:0px; padding:0px !important; text-align:left; vertical-align:top; width:225px; max-height:99% !important; overflow: hidden !important; z-index:2999999999 !important;}');
style.push('#gl-container {color: #000000; background-color: #CED8F6; font-family:Courier New,Arial; font-size:11px;}');
// General Styles
style.push('#gl-container, #gl-container input, #gl-container button, #gl-resultplain, #gl-resultlink { -moz-border-radius: 5px; border-radius: 5px; }');
style.push('#gl-container input {margin-right:3px; width:auto; border:2px solid #819FF7; color:#000000; background-color:#ffffff; font-family:Arial, Courier New; font-size:11px !important; font-weight: bold; height:20px !important;}');
style.push('#gl-container input {margin-right:ßpx; width:auto; border:2px solid #819FF7; color:#000000; background-color:#ffffff; font-family:Arial, Courier New; font-size:11px !important; font-weight: bold; height:20px !important;}');
style.push('#gl-container input:hover, #gl-container input:focus {background-color:#FFFFCC; }');
style.push('#gl-container button {border:2px solid #819FF7; color:#000000; background-color:#ffffff; margin:0px; padding:0px; font-family:Arial, Courier New; font-size:11px; font-weight: bold; }');
style.push('#gl-container button {border:2px solid #819FF7; color:#000000; background-color:#ffffff; margin:0px; padding:4px 3px; font-family:Arial, Courier New; font-size:11px; font-weight: bold; }');
style.push('#gl-container button:hover {border:2px solid #ffffff; color:#ffffff; background-color:#819FF7; }');
// Search Box
style.push('#gl-container #gl-searchbox {position:relative; top:0px; left:0px; padding;0px; margin:0px; white-space:nowrap;}');
style.push('#gl-container #gl-searchform {margin:3px; padding;0px; height:20px !important}');
style.push('#gl-container #gl-searchform {margin:0px; padding;0px; height:20px !important}');
style.push('#gl-container #gl-searchform #gl-searchtext {min-width:50px; max-width:115px; height:20px !important}');

style.push('#gl-container #gl-searchbox #gl-scount {min-width:5px; max-width:25px; margin-left:3px; height:20px !important; text-align:right; background-color:#EFF2FB; }');

style.push('#gl-container #gl-actionbox {position:relative; top:0px; right:0px; padding: 0px 3px; margin: 0px; white-space:nowrap;}');
style.push('#gl-container #gl-searchbox #gl-scount {min-width:5px; max-width:25px; margin-left:0px; height:20px !important; text-align:right; background-color:#EFF2FB; }');
// Action box
style.push('#gl-container #gl-actionbox {position:relative; top:5px; right:0px; padding: 0px; margin: 0px; white-space:nowrap;}');
style.push('#gl-container #gl-actionbox div {color: #000000; background-color: #ffffff; white-space:nowrap;}');

style.push('#gl-container #gl-actionbox button {padding:0px 2px; }');
// Result Box
style.push('#gl-container #gl-resultbox div {color: #000000; background-color: #ffffff; white-space:nowrap;}');
style.push('#gl-container #gl-resultbox {position:relative; top:0px; right:0px; padding: 0px 3px; margin: 0px; max-width:100%; max-height: 99.5%; height:99.5%; overflow:hidden;}');
style.push('#gl-container #gl-resultbox {position:relative; top:5px; right:0px; padding: 0px; margin: 0px; border: transparent none ßpx; min-width: 97%; min-height: 92%; max-width: 99%; max-height: 92%; height: 93%; width: 99%; overflow: auto;}');
style.push('#gl-container #gl-resultbox tr, #gl-container #gl-resultbox table {padding:0pt; margin:0pt;}');
style.push('#gl-container #gl-resultbox td, #gl-container #gl-resultbox a {font-family:Courier New, Arial; font-size:9pt !important; white-space:nowrap; padding: 0pt; margin 0pt; line-height:10pt !important}');
style.push('#gl-container #gl-resultbox #gl-resultplain {position:relative; top:0px; left:0px; padding: 0px; margin: 0px; min-width:100%; min-height: 97%; max-width:100%; max-height: 97%; height: auto; overflow: auto; visibility:visible; z-index: 910;}');
style.push('#gl-container #gl-resultbox #gl-resultlink {position:absolute; top:0px; left:0px; padding: 0px; margin: 0px; min-width:100%; min-height: 97%; max-width:100%; max-height: 97%; height: auto; overflow: auto; visibility:hidden; z-index: 909; color:red;}');
style.push('#gl-container #gl-resultbox #gl-resultplain {position:absolute; top:0px; left:0px; padding: 0px; margin: 0px; border: transparent none 0pt; scrollbar-color: #819FF7 #e0e0e0; scrollbar-width: initial; min-width: 97%; min-height: 97%; max-width: 99%; max-height: 99%; height: 99%; width: 99%; overflow: auto; visibility:visible; z-index: 910;}');
style.push('#gl-container #gl-resultbox #gl-resultlink {position:absolute; top:0px; left:0px; padding: 0px; margin: 0px; border: transparent none 0pt; scrollbar-color: #819FF7 #e0e0e0; scrollbar-width: initial; min-width: 97%; min-height: 97%; max-width: 99%; max-height: 99%; height: 99%; width: 99%; overflow: auto; visibility:hidden; z-index: 909; color:red;}');
style.push('#gl-container #gl-resultbox #gl-resultlink a { color:#000066; font-family:Arial,Courier New; line-height:120%;}');
style.push('#gl-container #gl-resultbox #gl-resultlink a:hover { color: #990000;}');
gmAddStyleGlobal(style);
Expand Down
Loading

0 comments on commit 9770a2c

Please sign in to comment.