From: <dos...@us...> - 2013-04-30 19:58:07
|
Revision: 4565 http://sourceforge.net/p/mp-plugins/code/4565 Author: doskabouter Date: 2013-04-30 19:58:05 +0000 (Tue, 30 Apr 2013) Log Message: ----------- reformatting Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2013-04-18 21:17:39 UTC (rev 4564) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2013-04-30 19:58:05 UTC (rev 4565) @@ -8,7 +8,19 @@ { public class DomHelper { - private const string _spanstyle = "font-family: arial,sans-serif; font-size: 12px ! important; line-height: 130% ! important; border-width: 1px ! important; border-style: solid ! important; -moz-border-radius: 2px 2px 2px 2px ! important; padding: 0px 2px ! important; margin-right: 2px; max-width: 20px; max-height: 10px ! important; overflow: visible ! important; float: none ! important; display: inline;"; + private const string _spanstyle = "font-family: arial,sans-serif; " + + "font-size: 12px ! important; " + + "line-height: 130% ! important; " + + "border-width: 1px ! important; " + + "border-style: solid ! important; " + + "-moz-border-radius: 2px 2px 2px 2px ! important; " + + "padding: 0px 2px ! important; " + + "margin-right: 2px; " + + "max-width: 20px; " + + "max-height: 10px ! important; " + + "overflow: visible ! important; " + + "float: none ! important; " + + "display: inline;"; private const string btwebId = "btweb_id"; public static void AddLinksToPage(GeckoDocument document) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2013-04-30 19:59:51
|
Revision: 4566 http://sourceforge.net/p/mp-plugins/code/4566 Author: doskabouter Date: 2013-04-30 19:59:48 +0000 (Tue, 30 Apr 2013) Log Message: ----------- - fixed missing round corners at link-numbers - improved placement of link-numbers Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2013-04-30 19:58:05 UTC (rev 4565) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2013-04-30 19:59:48 UTC (rev 4566) @@ -13,13 +13,16 @@ "line-height: 130% ! important; " + "border-width: 1px ! important; " + "border-style: solid ! important; " + - "-moz-border-radius: 2px 2px 2px 2px ! important; " + + "border-radius: 2px 2px 2px 2px ! important; " + "padding: 0px 2px ! important; " + "margin-right: 2px; " + "max-width: 20px; " + "max-height: 10px ! important; " + "overflow: visible ! important; " + "float: none ! important; " + + "position: relative !important; " + + "top: 0; " + + "left: 0; " + "display: inline;"; private const string btwebId = "btweb_id"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-01-19 12:32:00
|
Revision: 4746 http://sourceforge.net/p/mp-plugins/code/4746 Author: doskabouter Date: 2014-01-19 12:31:57 +0000 (Sun, 19 Jan 2014) Log Message: ----------- Added detection of embedded flash objects Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-01-19 11:42:42 UTC (rev 4745) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-01-19 12:31:57 UTC (rev 4746) @@ -183,6 +183,19 @@ } } + GeckoElementCollection embeds = document.GetElementsByTagName("embed"); + MyLog.debug("page embeds cnt : " + embeds.Count); + foreach (GeckoEmbedElement element in embeds) + if (element.Type == "application/x-shockwave-flash") + { + if (!elementDone(element)) + { + insertSpanAfter(id, null, element.Parent, "color:black;background-color:white"); + SetLinkAttributes(element, id); + id++; + } + } + GeckoElementCollection forms = document.GetElementsByTagName("form"); MyLog.debug("page forms cnt : " + forms.Count); foreach (GeckoHtmlElement element in forms) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-04-27 19:13:05
|
Revision: 4788 http://sourceforge.net/p/mp-plugins/code/4788 Author: doskabouter Date: 2014-04-27 19:13:03 +0000 (Sun, 27 Apr 2014) Log Message: ----------- Fixed duplicate link-numbers for iframes Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-04-21 19:48:57 UTC (rev 4787) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-04-27 19:13:03 UTC (rev 4788) @@ -85,7 +85,7 @@ return new Point(0, 0); } - private static void AddLinksToPage(GeckoDocument document, int id) + private static int AddLinksToPage(GeckoDocument document, int id) { Dictionary<string, int> hrefs = new Dictionary<string, int>(); GeckoElementCollection links = document.Links; @@ -253,7 +253,8 @@ GeckoElementCollection iframes = document.GetElementsByTagName("iframe"); MyLog.debug("page iframes cnt : " + iframes.Count<GeckoHtmlElement>()); foreach (GeckoIFrameElement element in iframes) - AddLinksToPage(element.ContentDocument, id); + id = AddLinksToPage(element.ContentDocument, id); + return id; } private static int GetMaxId(GeckoDocument document) @@ -282,7 +283,7 @@ private static GeckoHtmlElement CreateSpan(GeckoDocument owner, int geckoId, string className, string extra) { GeckoHtmlElement result = owner.CreateHtmlElement("span"); - result.SetAttribute("style", _spanstyle + extra); + result.SetAttribute("style", _spanstyle + extra); result.InnerHtml = geckoId.ToString(); if (!String.IsNullOrEmpty(className)) result.SetAttribute("class", className); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-09-02 20:15:02
|
Revision: 4878 http://sourceforge.net/p/mp-plugins/code/4878 Author: doskabouter Date: 2014-09-02 20:14:58 +0000 (Tue, 02 Sep 2014) Log Message: ----------- minor refactoring Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-08-25 20:47:24 UTC (rev 4877) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-09-02 20:14:58 UTC (rev 4878) @@ -10,22 +10,26 @@ { public class DomHelper { - private const string _spanstyle = "font-family: arial,sans-serif; " + + private const string _baseSpanStyle = + "font-family: arial,sans-serif; " + "font-size: 12px ! important; " + "line-height: 130% ! important; " + "border-width: 1px ! important; " + "border-style: solid ! important; " + "border-radius: 2px 2px 2px 2px ! important; " + + "max-height: 10px ! important; " + + "overflow: visible ! important; " + + "float: none ! important; " + + "display: inline;"; + + private const string _spanstyle = _baseSpanStyle + "padding: 0px 2px ! important; " + "margin-right: 2px; " + "max-width: 20px; " + - "max-height: 10px ! important; " + - "overflow: visible ! important; " + - "float: none ! important; " + - "position: relative !important; " + + "position: relative ! important; " + "top: 0; " + - "left: 0; " + - "display: inline;"; + "left: 0; "; + private const string btwebId = "btweb_id"; public static void AddLinksToPage(GeckoDocument document) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-09-02 20:28:06
|
Revision: 4879 http://sourceforge.net/p/mp-plugins/code/4879 Author: doskabouter Date: 2014-09-02 20:27:57 +0000 (Tue, 02 Sep 2014) Log Message: ----------- Numbers for flash objects and other html-objects now displayed on top of the flash instead of above it Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-09-02 20:14:58 UTC (rev 4878) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-09-02 20:27:57 UTC (rev 4879) @@ -30,6 +30,13 @@ "top: 0; " + "left: 0; "; + private const string _spanStyleObject = _baseSpanStyle + + "padding: 0px 2px 4px 2px ! important; " + + "margin-right: 8px; " + + "max-width: 30px; " + + "position: absolute ! important;" + + "z-index-100; "; + private const string btwebId = "btweb_id"; public static void AddLinksToPage(GeckoDocument document) @@ -182,7 +189,7 @@ { if (!elementDone(element)) { - insertSpanAfter(id, null, element.Parent, "color:black;background-color:white"); + insertSpanAfter(id, null, element.Parent, "color:black;background-color:white", true); SetLinkAttributes(element, id); id++; } @@ -195,7 +202,7 @@ { if (!elementDone(element)) { - insertSpanAfter(id, null, element.Parent, "color:black;background-color:white"); + insertSpanAfter(id, null, element.Parent, "color:black;background-color:white;position:absolute;z-index:2000"); SetLinkAttributes(element, id); id++; } @@ -284,9 +291,12 @@ return maxId; } - private static GeckoHtmlElement CreateSpan(GeckoDocument owner, int geckoId, string className, string extra) + private static GeckoHtmlElement CreateSpan(GeckoDocument owner, int geckoId, string className, string extra, bool isObject = false) { GeckoHtmlElement result = owner.CreateHtmlElement("span"); + if (isObject) + result.SetAttribute("style", _spanStyleObject + extra); + else result.SetAttribute("style", _spanstyle + extra); result.InnerHtml = geckoId.ToString(); if (!String.IsNullOrEmpty(className)) @@ -294,11 +304,11 @@ return result; } - private static GeckoElement insertSpanAfter(int geckoId, string className, GeckoNode after, string extra = "") + private static GeckoElement insertSpanAfter(int geckoId, string className, GeckoNode after, string extra = "", bool isObject = false) { if (after == null) throw new ArgumentNullException("after"); - GeckoHtmlElement newChild = CreateSpan(after.OwnerDocument, geckoId, className, extra); + GeckoHtmlElement newChild = CreateSpan(after.OwnerDocument, geckoId, className, extra, isObject); if (after.FirstChild == null) after.AppendChild(newChild); else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-10-06 20:39:57
|
Revision: 4890 http://sourceforge.net/p/mp-plugins/code/4890 Author: doskabouter Date: 2014-10-06 20:39:54 +0000 (Mon, 06 Oct 2014) Log Message: ----------- Fixed prev/next issue with iframes Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-10-06 20:38:46 UTC (rev 4889) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-10-06 20:39:54 UTC (rev 4890) @@ -44,10 +44,14 @@ public static Tuple<string, string> AddLinksToPage(GeckoDocument document, Settings settings) { - previousUrl = null; - nextUrl = null; - int maxId = GetMaxId(document); + if (maxId == 0) + { + //new page, so reset prev and next + MyLog.debug("Reset prev and next url"); + previousUrl = null; + nextUrl = null; + } AddLinksToPage(document, maxId + 1, settings); return new Tuple<string, string>(previousUrl, nextUrl); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dos...@us...> - 2014-11-18 20:17:28
|
Revision: 4891 http://sourceforge.net/p/mp-plugins/code/4891 Author: doskabouter Date: 2014-11-18 20:17:20 +0000 (Tue, 18 Nov 2014) Log Message: ----------- Numbers for flash objects and other html-objects now displayed on top of the flash instead of above it Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-10-06 20:39:54 UTC (rev 4890) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/DomHelper.cs 2014-11-18 20:17:20 UTC (rev 4891) @@ -227,7 +227,7 @@ { if (!elementDone(element)) { - insertSpanAfter(id, null, element.Parent, "color:black;background-color:white;position:absolute;z-index:2000"); + insertSpanAfter(id, null, element.Parent, "color:black;background-color:white", true); SetLinkAttributes(element, id); id++; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |