Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- DissenterViewCommentsButton.html.and.js.START -->
- <div id="Dissenter_Wrapper" style="clear: both; float: left; width: 100%;"></div>
- <script>
- // Gab Dissenter View-Comments Button (HTML and Javascript)
- // https://pastebin.com/Gx8kmJps https://pastebin.com/u/LooseStool
- // A more generic version of what I saw here:
- // https://www.libertariannews.org/2019/10/20/trends-gab-com-the-new-non-cucked-drudge-report/
- var _GD = function(WebpageAfterRedirects, WebsiteOwner, DivWrapper, DivHtml, TextColor, ButtonText, FunctionTwoArgs, Dimensions) {
- var G = function(id) { return document.getElementById ? document.getElementById(id) : document.all(id); }
- , DivInclude = "Dissenter_IncludeToNotify"
- , LinkClick = "Dissenter_LinkToClick"
- , DivView = "Dissenter_ViewText";
- G(DivWrapper ? DivWrapper : "Dissenter_Wrapper").innerHTML = DivHtml ? DivHtml : (
- '<div style="display: block !important; width: 100% !important; height: 80px !important; padding: 20px 0px !important;'
- + 'overflow: hidden !important; box-sizing: border-box !important;">'
- + '<div id="Dissenter_IncludeToNotify" style="text-align: center !important;"></div>'
- + '<a id="Dissenter_LinkToClick" style="display: block !important; width: 100% !important; height: 42px !important;'
- + 'background-color: rgb(33, 207, 123) !important; border-radius: 4px !important;'
- + 'text-align: center !important; margin: 0px auto !important; box-sizing: border-box !important; cursor: pointer !important;">'
- + '<div id="Dissenter_ViewText" style="!important; line-height: 40px !important; font-size: 14px !important;"></div>'
- + '</a>'
- + '</div>'
- );
- if(WebsiteOwner) { G(DivInclude).innerHTML = "Include " + WebsiteOwner + " on a Dissenter comment to notify me of your post." };
- G(DivView).style.color = TextColor ? TextColor : "rgb(255, 255, 255)"; //optional TextColor
- G(DivView).innerHTML = ButtonText ? ButtonText : "View Comments on Dissenter"; //optional ButtonText
- G(LinkClick).onclick = function() { return ( FunctionTwoArgs ? FunctionTwoArgs : function(url, dim) { //optional FunctionTwoArgs
- window.open( "https://dissenter.com/discussion/begin?url=" + encodeURIComponent(url) // /begin seems to be the same result as /begin-extension used by the inspiration for this code snippet: https://www.libertariannews.org/2019/10/20/trends-gab-com-the-new-non-cucked-drudge-report/ )
- , "_blank", "toolbar=no,scrollbars=yes,resizable=yes,"
- + ( dim ? dim : "top=0,left=500,width=450,height=800" ) //optional Dimensions
- );
- } )( WebpageAfterRedirects || location.href, Dimensions ); };
- };
- window.setTimeout( function(){
- _GD( "https://www.google.com", "@NarrativeController" );
- }, 17 );
- </script>
- <!-- DissenterViewCommentsButton.html.and.js.FINISH -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement