Problem with a page not displaying properly

Ask for help about NoScript, no registration needed to post
Gazer75
Posts: 12
Joined: Tue Nov 11, 2014 1:20 pm

Problem with a page not displaying properly

Post by Gazer75 »

I cant get most of the live pages at direkte.vg.no to display properly.

Been trying to post the console data, but the spam filter refuses to accept it. Even tried posting a link to pastebin.

Use this code with no spaces at the pastebin site:
V Q L T Q G 2 X

Posting that code with no spaces triggers spam filter on forum :(
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
User avatar
Giorgio Maone
Site Admin
Posts: 9528
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Problem with a page not displaying properly

Post by Giorgio Maone »

That website depends on lots of 3rd party script sources. Are they all allowed?

Regarding the spam filter, it's triggered by too many (>=6) consecutive consonants, but it exempts [ url] and [ code] blocks.
I've just changed it to work with bare URLs too, so your issue with pastebin should be fixed now.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Gazer75
Posts: 12
Joined: Tue Nov 11, 2014 1:20 pm

Re: Problem with a page not displaying properly

Post by Gazer75 »

Only sites that show up in noscript is vg.no(allowed), newrelic.com(allowed), google.com(allowed) and adtech.de(blocked).

I tried posting the console data in a code block and it still got spam flagged. Thats why I tried to use pastebin.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
barbaz
Senior Member
Posts: 11108
Joined: Sat Aug 03, 2013 5:45 pm

Re: Problem with a page not displaying properly

Post by barbaz »

URL: http://direkte.vg.no/studio/sjakkvm2014-3

I can't get it to work either.
Here are the possibly relevant messages from your paste:

Code: Select all

ReferenceError: unispring is not defined sjakkvm2014-3:200
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ sjakkvm2014-3:8
TypeError: i is undefined shared.js:1
I'm gonna see if a surrogate script can get it working.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; BSD Four) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.11.5 Safari/534.34
barbaz
Senior Member
Posts: 11108
Joined: Sat Aug 03, 2013 5:45 pm

Re: Problem with a page not displaying properly

Post by barbaz »

Well, WFM allowing adtech.de and using the following surrogate:

Code: Select all

noscript.surrogate.vgno.replacement : unispring={__noSuchMethod__:function(){}};
noscript.surrogate.vgno.sources : @direkte.vg.no
(heh, looks like that surrogate isn't needed actually..)

So the related message is

Code: Select all

TypeError: i is undefined shared.js:1
which is apparently caused by the lack of this script from adtech.de

Code: Select all

/* DAC.js 2.5.3 Copyright 2014 AOL Advertising. */
window.ADTECH=window.ADTECH||{debugMode:!1,config:{placements:{},placementsdyn:{}}},window.DAC=window.DAC||{};try{!function(){"use strict";function a(a,b,c){function d(){var a=c&&c.navigator&&c.navigator.userAgent;if(a){var b=a.match(/MSIE ([^;]*)|Trident.*; rv:([0-9.]+)/);b&&(b[1]||b[2])&&(k=e(b[1]||b[2]),l=k&&(9>k||c.document.documentMode&&c.document.documentMode<10));var d=a.match(/AppleWebKit\/([^\s]*)/);d&&d[1]&&(n=e(d[1]));var f=a.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);f&&f[1]&&f[2]&&(m=e(f[2]),n=0)}}function e(a){return parseFloat(a)}function f(){return k}function g(){return l}function h(){return!!m}function i(){return!!n}var j="Environment",k=0,l=!1,m=0,n=0;return d(),a[j]={isOldIEMode:g,getIEVersion:f,isChrome:h,isSafari:i},a[j]}function b(a,b,c){function d(a,b,c){var d,e=a&&a.length||0;for(d=0;e>d;d++)b.call(c,a[d],d)}function e(a,b,c){if(a){var d;for(d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d])}}function f(a){return"object"==typeof a}function g(a){return"string"==typeof a}function h(a){return"function"==typeof a}function i(a){return"number"==typeof a&&isFinite(a)}function j(a){return"object"==typeof a&&a.constructor===Array}function k(a){return"boolean"==typeof a}function l(a){var b;if(!c.JSON)throw new Error("JSON not found. Could not transform the string into an object");return b=c.JSON.parse(a)}function m(a,b,c,f){var g,h={};c?(d(c,function(a){b.hasOwnProperty(a)&&(h[a]=!0)}),g=f?function(b,c){h[b]||(a[b]=c)}:function(c){h[c]&&(a[c]=b[c])}):g=function(b,c){a[b]=c},e(b,g)}function n(a){var b=C.getElementById(a.adContainerId);return null!==b&&f(b)&&b}function o(b){var c=b.config,d=a.Environment.getIEVersion;if(!n(c)){if(!a.ResourceManager.isSync(b.config.legacyDACLoadType,d))throw B+"#createAdContainer Ad Container cannot be created";C.write('<div id="'+c.adContainerId+'" style="padding:0;margin:0;border:0;"></div>'),c.adContainer=C.getElementById(c.adContainerId),b.logger.log(B,"createAdContainer","Created <div> element with ID "+c.adContainerId)}}function p(a){var b=C.getElementById(a.adContainerId);if(null===b||!f(b))throw new Error(B+"#resolveContainer Ad Container not found");a.adContainer=b,a.skipContainerClean||(a.adContainer.innerHTML="")}function q(a){var b=a.queueId?' adtechQueueId="'+a.queueId+'"':"";return'<script type="text/javascript" src="'+a.config.adcallUrl+'"'+b+"></script>"}function r(a,b){return function(){try{a.apply(null,arguments)}catch(c){if(b.log("Exception raised: "+c.message),b.isEnabled())throw c}}}function s(a){return Math.round(Math.random()*a)}function t(a,b,c,d){return void 0===a||void 0===b?!1:(c&&(c=v([a,b],c)),w(a,b,c,d)&&w(b,a,c,d))}function u(a,b){var c=[],f={};return d(a,function(a){e(a,function(a){!f[a]&&b.test(a)&&(c.push(a),f[a]=!0)})}),c}function v(a,b){var c=[];return d(b,function(b){if(b instanceof RegExp){var d=u(a,b);d.length>0&&Array.prototype.push.apply(c,d)}else c.push(b)}),c}function w(a,b,c,d){function e(e){var f=!(a.hasOwnProperty(e)||b.hasOwnProperty(e));return f?!0:d&&x(c,e)?!0:a.hasOwnProperty(e)&&b.hasOwnProperty(e)&&("object"==typeof a[e]?objectEquals(a[e],b[e]):a[e]===b[e])}var f;if(c&&c.constructor===Array&&!d){for(f=0;f<c.length;f++)if(!e(c[f]))return!1;return!0}for(f in a)if(a.hasOwnProperty(f)&&!e(f))return!1;return!0}function x(a,b){var c=!1;return d(a,function(a){a===b&&(c=!0)}),c}function y(a){var b=[];return d(a,function(a,c){b[c]=a}),b}function z(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function A(){var a=C.documentElement.clientWidth,b="CSS1Compat"===C.compatMode&&a||C.body&&C.body.clientWidth||a;return C.body||0!==b||(b=C.documentElement.scrollWidth),b}var B="Utils",C=c.document;return a[B]={each:d,eachKey:e,isString:g,isObject:f,isFunc:h,isBoolean:k,isNumber:i,isArray:j,copyObject:m,resolveContainer:p,generateScriptHTML:q,stringToObject:l,createClosure:r,createAdContainer:o,rnd:s,objectsEquals:t,buildObjectsProperties:v,cloneArray:y,addEventListener:z,getViewportWidth:A},a[B]}function c(a,b,c){function d(){p&&(clearTimeout(q),q=setTimeout(e,p))}function e(){o=s.getViewportWidth(),s.eachKey(t,function(b,c){i(c)&&a.BannerInjector.doAsync(c)}),f()}function f(){s.eachKey(u,function(a,b){g(b)})}function g(b){if(clearTimeout(b.reloadTimeout),b.running)b.reloadTimeout=setTimeout(function(){g(b)},p);else{var c=[],d=b.getResponsiveRequests();s.each(d,function(a){i(a)&&c.push(a.id)}),c.length>0&&a.AdQueue.reloadQueue(b,c)}}function h(a){a.hasResponsiveConfig()&&(p=a.config.responsiveCheckTimeout,t[a.id]=a,i(a),d())}function i(a){var b,c,d,e=a.config.responsive.bounds;for(b=0;b<e.length;b++)if(c=e[b],j(c)){b!==a.currentBoundIndex&&(d=!0,a.currentBoundIndex=b,a.responsiveId=c.id,delete a.config.adcallUrl);break}return d||delete a.responsiveId,d}function j(a){return o>=a.min&&o<=a.max}function k(a){var b=!1,c=[];s.each(a.storage,function(a,d){a.hasResponsiveConfig()&&(p=a.config.responsiveCheckTimeout,b=!0,c.push(d),i(a))}),b&&(a.responsiveIndexes=c,u[a.id]=a)}function l(){return t}function m(){return u}function n(a){var b={params:{}};return s.copyObject(b,a.config,["params","placement","alias"],!0),s.copyObject(b.params,a.config.params,["alias"],!0),s.isNumber(a.responsiveId)?b.placement=a.responsiveId:s.isString(a.responsiveId)&&(b.params.alias=a.responsiveId),b}var o,p,q,r="ResponsiveAdManager",s=a.Utils,t={},u={};o=a.Utils.getViewportWidth(),a.Utils.addEventListener(c,"resize",d),a[r]={register:h,registerQueue:k,currentViewportWidth:o,checkTimeout:q,getResponsiveAdsRegistry:l,getResponsiveQueuesRegistry:m,makeResponsiveConfigClone:n}}function d(a,b,c){function d(c,d){if(a.Utils.resolveContainer(c.config),c.shown=!0,c.config.fif.usefif)e("injectBannerAsyncMode","Fif",c),a.FifRenderer.setupFif(c);else{e("injectBannerAsyncMode","postscribe",c);var f=a.ResourceLoader.buildUrl(c.config,"postscribe.js"),g=d.bannerCode||x.generateScriptHTML(c);a.ResourceLoader.loadScript(f,"postscribe",!0,function(a){if(!a)throw new Error("BannerInjector# injectBannerAsyncMode.  Postscribe lib failed to load");c.logger.log(j,"injectBannerAsyncMode","Postscribe loaded. Performing ad injection for request id "+(c.id||"<?>")),b.postscribe(c.config.adContainer,g,c.config.complete)},c.logger)}}function e(a,b,c){var d=c.config;c.logger.log(j,a,"Inject banner in async mode using "+b+" for request id "+c.id+(d.adcallUrl?" using URL "+d.adcallUrl:""))}function f(b){var c=a.Detections;c.detectScreenSize(b),c.detectUTCOffset(b),c.detectFlashVersion(b),c.detectRichMediaSupport(b)}function g(a){i(a),d(a,{})}function h(b){b.shown=!0,i(b),b.logger.log(j,"doSync","Performing sync ad call using document.write"+(b.config.placement?" for placement "+b.config.placement:"")+" using URL "+b.config.adcallUrl),c.document.write(a.Utils.generateScriptHTML(b))}function i(b){var c=b.config;b.responsiveId&&(c=a.ResponsiveAdManager.makeResponsiveConfigClone(b)),w.AdcallBuilder.buildUrl(c),b.config.adcallUrl=c.adcallUrl}var j="BannerInjector";a[j]={injectBannerAsyncMode:d,performSyncDetections:f,doAsync:g,doSync:h}}function e(a,b,c){function d(a,c,d,g){b.resourceRegistry=b.resourceRegistry||{};var h=b.resourceRegistry;h[a]&&h[a].loaded&&(!d||d&&p)?c(h[a].status):(h[a]||(h[a]={queue:[],needPageDOM:d},g(e(a),f(a))),h[a].queue.push(c))}function e(a){return function(){g(a,!0)}}function f(a){return function(){g(a,!1)}}function g(a,c){var d=b.resourceRegistry;d[a].loaded=!0,d[a].status=c,h(d[a])}function h(a){if((!a.needPageDOM||p)&&a.loaded){for(var b=a.queue,c=0;c<b.length;c++)b[c](a.status);a.queue=[]}}function i(){if(!n){p=!0,n=!0;var a=b.resourceRegistry;for(var c in a)h(a[c])}}function j(){if("complete"===q.readyState)return setTimeout(i,1);if(q.addEventListener)q.addEventListener("DOMContentLoaded",i,!1),c.addEventListener("load",i,!1);else if(q.attachEvent){q.attachEvent("onreadystatechange",i),c.attachEvent("onload",i);var a=!1;try{a=null===c.frameElement}catch(b){}q.documentElement.doScroll&&a&&k()}}function k(){if(!n){try{q.documentElement.doScroll("left")}catch(a){return void setTimeout(k,1)}i()}}function l(a,b){var d="loading"===q.readyState;if(!d&&"interactive"===q.readyState&&c==c.top&&b)try{q.documentElement.doScroll&&q.documentElement.doScroll("left")}catch(e){d=!0}else!d&&"interactive"===q.readyState&&c!=c.top&&b&&(q.addEventListener?p||(d=!0):a&&(d=!0));return d}function m(){return p}var n,o="ResourceManager",p=!1,q=c.document;j(),a[o]={schedule:d,isSync:l,isDOMReady:m}}function f(a,b,c){function d(b,c,d,e,h){a.ResourceManager.schedule(c,a.Utils.createClosure(e,h),d,function(c,d){g(),f(b,i,{onSuccess:a.Utils.createClosure(c,h),onError:a.Utils.createClosure(d,h)},!1)})}function e(b,c,d){g(),f(b,i,{onSuccess:a.Utils.createClosure(function(){c(!0)},d),onError:a.Utils.createClosure(function(){c(!1)},d)},!0)}function f(b,d,e,f){var g=c.document.createElement("script"),h=a.Environment.getIEVersion();g.setAttribute("type","text/javascript"),g.setAttribute("src",b),h&&(9>h||c.document.documentMode&&c.document.documentMode<9)?g.onreadystatechange=function(){/loaded|complete/.test(g.readyState)&&(g.onreadystatechange=null,e.onSuccess&&e.onSuccess())}:h>=10&&!f?(g.onerror=function(){setTimeout(e.onError,0)},g.onload=function(){setTimeout(e.onSuccess,0)}):(g.onerror=e.onError,g.onload=e.onSuccess),d.appendChild(g)}function g(){if(!i){var a=c.document.head;if(!a){var b=c.document.getElementsByTagName("head");a=b&&b.length>0?b[0]:c.document.body||c.document.getElementsByTagName("body")[0]}i=a}}function h(a,b){return"https"===a.protocol?k+b:j+b}var i,j="http://aka-cdn-ns.adtechus.com/dt/common/",k="https://aka-cdn.adtechus.com/dt/common/",l="ResourceLoader";a[l]={loadScript:d,loadTransientScript:e,buildUrl:h}}function g(a){function b(b){if(!a.Utils.isString(b.adcallUrl)){var f=b.protocol+"://"+b.server+"/"+d+e+b.network+e+(b.placement?b.placement:0)+e+b.pageid.toString()+e+b.sizeid.toString()+e+b.normaltarget;f=c(f,b,";"),b.adcallUrl=f}}function c(b,c,d,e,g,h){var i=!0,j="";return h=h||{},a.Utils.isObject(c.params)&&(i=void 0===c.params.misc,a.Utils.eachKey(c.params,function(a,c){g&&g[a]||(h[a]&&(c=h[a],delete h[a]),f[a]?j+=d+a+"="+c:b+=d+a+"="+c)}),a.Utils.eachKey(h,function(a,c){b+=d+a+"="+c})),i&&!e&&(b+=d+"misc="+(new Date).getTime()),b+=j}var d="addyn/3.0",e="/",f={rdclick:!0,rdview:!0,link:!0},g="AdcallBuilder";a[g]={buildUrl:b,addUrlParams:c}}function h(a,b,c){function d(a,c){function d(){G||(w.log(h,"adcallComplete","#"+a.id),c.queueId&&!c.partOfMultiAd&&b.queueCallback(c.queueId),G=!0)}function g(a){f()?a.onload=d:a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&(a.onreadystatechange=null,d())}}function i(){w.log(h,"done","#"+a.id),d(),x.complete&&x.complete()}function m(b,c){w.log(h,"resize","#"+a.id+" resizing to "+b+"x"+c),a.width=b,a.height=c}function n(){if(F){o(),x.fif.preResize(c.id);var a=p();m(a.width,a.height)}else m(D,E);i()}function o(){var a;if(!c.config.fif.contentStyle){if(j.isOldIEMode()){var b=I.nextSibling;b&&"a"===b.nodeName.toLowerCase()&&(a=b)}else 2===I.children.length&&"a"===I.children[1].nodeName.toLowerCase()&&(a=I.children[1]);a&&1===a.children.length&&"img"===a.children[0].nodeName.toLowerCase()&&(a.children[0].style.display="block")}}function p(){var a=I.scrollWidth,b=I.scrollHeight;return 0!==a&&0!==b||1!==I.children.length||!j.isOldIEMode()||"script"===I.children[0].nodeName.toLowerCase()&&(a=r("Width"),b=r("Height")),window.opera&&(2>a||2>b)&&(a=q("Width"),b=q("Height")),{width:a,height:b}}function q(a){var b=Math.max(C.documentElement["client"+a],C.body["scroll"+a],C.documentElement["scroll"+a],C.body["offset"+a],C.documentElement["offset"+a]);return b}function r(a){var b=Math.max(C.body["scroll"+a],C.body["offset"+a]);return b}function s(){var a=0,b=setInterval(function(){if(50>a&&"complete"!=C.readyState){var c=p();c.width>1&&c.height>1&&(clearInterval(b),m(c.width,c.height)),a++}else clearInterval(b)},100)}function t(){F&&(j.isChrome()||j.isSafari())?(H=0,u()):v()}function u(){var b=p();(b.width<=1||b.height<=1)&&k>H?(H+=l,w.log("#"+a.id+" recheck content size"),setTimeout(u,l)):v()}function v(){w.log("#"+a.id+" loaded"),n()}var w=c.logger,x=c.config,y="<script>var inFIF=inDapIF=true;</script>";x.fif.disableFriendlyFlag&&(y="");var z='<script id="adscript" src="'+x.adcallUrl+'"></script>';c.adLoadScript&&(z=c.adLoadScript);var A="<style>body {margin:0;padding:0;overflow:hidden;} html {margin:0;padding:0;} ";A+=c.config.fif.contentStyle,A+="</style>";var B="<!DOCTYPE html><html><head>"+A+"</head><body>"+y+'<div id="afd">'+z+"</div></body></html>",C=a.contentDocument||a.contentWindow.document,D=x.fif.width,E=x.fif.height,F=1>=D||1>=E,G=!1,H=0;C.open("text/html","replace"),C.write(B),g(C.getElementById("adscript")),e()?setTimeout(function(){C.close()},500):C.close();var I=C.getElementById("afd");"complete"==C.readyState?F?t():(m(D,E),i()):(C.addEventListener?a.contentWindow.addEventListener("load",t,!1):C.body.onload=t,F&&!x.fif.disableLoadingResize&&s())}function e(){return!!c.opera||j.isOldIEMode()}function f(){var a=j.getIEVersion();return a&&(9>a||c.document.documentMode&&c.document.documentMode<9)?!1:!0}function g(a){var b=c.document.createElement("iframe"),e=a.config,f=e.placement+"_frame";f=e.alias?e.alias+"_frame":e.placement?e.placement+"_frame":e.adContainerId?e.adContainerId+"_frame":"rnd_frame"+i.rnd(1e6),b.seamless="seamless",b.id=f,b.name=f,b.style.border="0px",b.scrolling="no",b.frameBorder=0,b.width=1,b.height=1,b.allowtransparency=!0,b.setAttribute("allowFullScreen","true"),b.setAttribute("mozallowFullScreen","true"),b.setAttribute("webkitAllowFullScreen","true"),b.src="about:blank",e.adContainer.appendChild(b),a.logger.log(h,"setupFif","#"+f+" created"),d(b,a)}var h="FifRenderer",i=a.Utils,j=a.Environment,k=500,l=50;a[h]={setupFif:g}}function i(a,b,c){function d(a,b,c,d){c[a]=!!d[a+b]}function e(a,b,c,d){d[a+b]&&(c[a]=d[a+b])}function f(a,b){var f;if(c.Adtech!==m){var g=c.Adtech;f={network:g["networkSubnetwork"+a],protocol:g["protocol"+a],server:g["adURLHostName"+a],alias:g["placementAlias"+a],kv:g["KV"+a],fif:g["fif"+a],params:{}},d("performScreenDetection",a,f,g),d("performTimezoneDetection",a,f,g),d("performFlashDetection",a,f,g),d("performRichMediaDetection",a,f,g),d("performGeoDetection",a,f,g),d("syncIfPossible",a,f,g),d("legacyDACLoadType",a,f,g),e("loc",a,f.params,g),e("grp",a,f.params,g),b.logObject(n,"AdtechConfig",f)}return f}function g(a,b,c,d,e){if(o(a)){var f=c&&a[c]?c:b;d.log(n,"getPlacementConfig","Placement look up for level "+e+" done using "+(f===c?"alias: "+c:"placement id: "+b));var g=a[f];return g&&d.logObject(n,"getPlacementConfig",g),g}return m}function h(a){return o(a)?a.important:m}function i(b,c,d,e){var f=e||{};a.Utils.eachKey(c,function(a,e){"important"===a||f[a]||(d||"params"!==a||e.alias===m||c.alias!==m||(b.alias=e.alias),o(b[a])&&o(e)&&!d?i(b[a],e,!0):b[a]===m&&o(e)&&!d?(b[a]={},i(b[a],e,!0)):null===e?delete b[a]:e!==m&&(b[a]=e))})}function j(b){var c=b.logger,d=b.config,e=d.placement,f=d.alias;if(!a.Utils.isNumber(e)&&!a.Utils.isString(f))throw n+": Invalid ad identifier";c.log(n,"buildConfiguration","Resolving configuration for alias: "+f+" and placement: "+e);var g,h={},j=k(d,c),l="";for(g=0;g<j.length;g++)j[g]&&o(j[g].config)&&(l+=" "+g,i(h,j[g].config,!1,j[g].ignore));return c.log(n,"buildConfiguration","Found configuration at priorities"+l),h}function k(a,c){var d=[],e=b.config,i=a.placement,j=a.alias,k={enableMultiAd:!0,responsiveCheckTimeout:!0};return d[10]={config:e.network},d[20]={config:e.website},d[30]={config:e.page},d[40]={config:g(e.placements,i,j,c,40),ignore:k},d[50]={config:e.networkdyn},d[60]={config:e.websitedyn},d[70]={config:e.pagedyn},d[80]={config:f(a.placement,c)},d[90]={config:g(e.placementsdyn,i,j,c,90),ignore:k},d[110]={config:h(e.network)},d[120]={config:h(e.website)},d[130]={config:h(e.page)},d[140]={config:h(g(e.placements,i,j,c,140)),ignore:k},d[150]={config:h(e.networkdyn)},d[160]={config:h(e.websitedyn)},d[170]={config:h(e.pagedyn)},d[180]={config:h(g(e.placementsdyn,i,j,c,180)),ignore:k},d[200]={config:a,ignore:k},d}function l(a){return!!b.config.placements&&!!b.config.placements[a]||!!b.config.placementsdyn&&!!b.config.placementsdyn[a]}var m,n="ConfigResolver",o=a.Utils.isObject;a[n]={buildConfiguration:j,isPlacementConfigDefined:l}}function j(a){function b(a,b){return m(a)&&""!==a?a:b}function c(a,b){return n(a)?a:b}function d(a){return a?"https":"http"}function e(a,e){var i,q={};if(!n(a.placement)&&!m(a.alias))throw"config.placement must be a Number or the config.alias has to be a string";return l.each(["network","server"],function(b){if(!m(a[b]))throw j+"#process config."+b+" must be a String"}),i=a.placement?a.placement:a.alias,q.placement=a.placement,q.alias=a.alias,q.network=a.network,q.server=a.server,q.protocol=b(a.protocol,d(a.secure===!0)),q.pageid=c(a.pageid,0),q.sizeid=c(a.sizeid,-1),q.normaltarget=b(a.normaltarget,"ADTECH"),q.adContainerId=b(a.adContainerId,i.toString()),h(q,a,"enableMultiAd",!1),g(q,a,"responsiveCheckTimeout",k),o(a.fif)?(q.fif={usefif:a.fif.usefif!==!1,width:c(a.fif.width,0),height:c(a.fif.height,0)},f(q.fif,a.fif,"disableFriendlyFlag"),f(q.fif,a.fif,"disableLoadingResize"),g(q.fif,a.fif,"shareWithAddOns",!0),q.fif.contentStyle=l.isString(a.fif.contentStyle)?a.fif.contentStyle:"",q.fif.preResize=l.isFunc(a.fif.preResize)?a.fif.preResize:p):q.fif={usefif:!1,width:0,height:0,disableFriendlyFlag:!1,disableLoadingResize:!1},l.isFunc(a.complete)&&(q.complete=a.complete),q.params={},o(a.params)&&l.eachKey(a.params,function(b){m(a.params[b])&&a.params[b].length>0&&(q.params[b]=a.params[b])}),q.alias&&(q.params.alias=q.alias),o(a.kv)&&l.eachKey(a.kv,function(a,b){var c=[];l.isArray(b)?(l.each(b,function(a){(m(a)||n(a))&&c.push(a.toString())}),q.params["kv"+a]=c.join(":")):m(b)&&b.length>0?q.params["kv"+a]=b.toString():n(b)&&(q.params["kv"+a]=b.toString())}),l.isObject(a.responsive)?(q.responsive={useresponsive:a.responsive.useresponsive!==!1,bounds:[]},l.isArray(a.responsive.bounds)&&l.each(a.responsive.bounds,function(a){a.id&&n(a.min)&&n(a.max)&&a.min<a.max&&q.responsive.bounds.push(a)}),0===q.responsive.bounds.length&&(q.responsive.useresponsive=!1)):q.responsive={useresponsive:!1,bounds:[]},f(q,a,"syncIfPossible"),f(q,a,"legacyDACLoadType"),f(q,a,"performGeoDetection"),f(q,a,"performScreenDetection"),f(q,a,"performTimezoneDetection"),f(q,a,"performFlashDetection"),f(q,a,"performRichMediaDetection"),e.logObject(j,"finalConfig",q),q}function f(a,b,c){a[c]=b[c]===!0}function g(a,b,c,d){a[c]=void 0!==b[c]?b[c]:d}function h(a,b,c,d){a[c]=l.isBoolean(b[c])?b[c]:d}function i(a){return a=a||{},a.multiAd=a.multiAd||{},a.multiAd.skipDefault=a.multiAd.skipDefault||!1,a.multiAd.disableAdInjection=a.multiAd.disableAdInjection||!1,g(a.multiAd,a.multiAd,"autoInjectShownResponsive",!0),a}var j="ConfigFinalizer",k=150,l=a.Utils,m=l.isString,n=l.isNumber,o=l.isObject,p=function(){};a[j]={process:e,processQueueConfig:i,defaultFunc:p}}function k(a){function b(a,b,f){var g;return b===m&&f===m?g=c(a):o.isString(a)&&o.isString(b)?g=d(a,b,f):e(),g}function c(a){var b={legacyApi:!1};if(o.isNumber(a))b.config=f(a);else if(o.isString(a))b.config=g(a);else if(o.isObject(a)){if(b.config=a,l(b.config),!b.config.placement&&!b.config.alias)throw n+"#handleNewApi no placement id or alias found"}else e();return b}function d(a,b,c){var d={legacyApi:!0};return o.isObject(c)?d.config=h(a,b,c):c===m?d.config=h(a,b,{}):e(),d}function e(){throw n+"#handleParameters Invalid parameters combination"}function f(a){return{placement:a}}function g(a){if(!a)throw n+"#handleAliasString empty alias not allowed";return{alias:a}}function h(a,b,c){var d={};return i(a,b,d),c.fif?(d.fif={},d.fif.usefif=!0,d.fif.width=k(c.width,0),d.fif.height=k(c.height,0),d.fif.preResize=o.isFunc(c.preResize)?c.preResize:function(){}):d.fif={usefif:!1,width:0,height:0},d.complete=j(c.complete),d.debugMode=!!c.debugMode,d}function i(a,b,c){c.adContainerId=a,c.adcallUrl=b}function j(a){return o.isFunc(a)?a:m}function k(a,b){return o.isNumber(a)?a:b}function l(a){!a.adContainerId&&a.injectElementId&&(a.adContainerId=a.injectElementId),!a.alias&&a.params&&a.params.alias&&(a.alias=a.params.alias)}var m,n="LoadAdParametersHandler",o=a.Utils;a[n]={handleParameters:b}}function l(a,b,c){function d(a){a.performScreenDetection&&c.screen&&c.screen.width&&c.screen.height&&(a.params.screenheight=c.screen.height.toString(),a.params.screenwidth=c.screen.width.toString(),c.devicePixelRatio&&(a.params.screendensity=c.devicePixelRatio.toString()))}function e(a){if(a.performTimezoneDetection){var b=-(new Date).getTimezoneOffset();b>0&&(b="+"+b),a.params.aduho=encodeURIComponent(b)}}function f(){return!(c.navigator.mimeTypes!==o&&c.navigator.mimeTypes[q]!==o&&!navigator.mimeTypes[q].enabledPlugin)}function g(a){if(a.performFlashDetection){var b,d,e;if(c.navigator.plugins!==o&&c.navigator.plugins["Shockwave Flash"]!==o){var g=c.navigator.plugins["Shockwave Flash"].description;g&&f()&&(g=g.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(g.replace(/^(.*)\..*$/,"$1"),10),d=parseInt(g.replace(/^.*\.(.*)\s.*$/,"$1"),10),e=/[a-zA-Z]/.test(g)?parseInt(g.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0)}else if(c.ActiveXObject!==o)try{var h=new c.ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(h){var i=h.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),b=parseInt(i[0],10),d=parseInt(i[1],10),e=parseInt(i[2],10))}}catch(j){}b!==o&&(a.params.flashver=b+"."+d+"."+e)}}function h(a){if(c.mraid!==o){var b=c.mraid.getVersion();/1\.\d/.test(b)?a="3":/2\.\d/.test(b)&&(a="5")}return a}function i(a){var b=""!==a?":":"";return c.ormma!==o?a+b+"4":a}function j(a){if(a.performRichMediaDetection){var b="";b=h(b),b=i(b),""!==b&&(a.params.apifw=b)}}function k(d){return function(e,f){function g(a){b.geoCoords=a.coords,e()}function h(a){d.logger.log(p,"myErr","GeoLocation failed: "+a.toString()),f()}c.navigator.geolocation.getCurrentPosition(a.Utils.createClosure(g,d.logger),a.Utils.createClosure(h,d.logger),{timeout:1e3})}}function l(c,d){var e=c.config;return a.Utils.createClosure(function(c){c&&b.geoCoords&&a.Utils.isNumber(b.geoCoords.latitude)&&a.Utils.isNumber(b.geoCoords.longitude)&&(e.params.lat=b.geoCoords.latitude.toString(),e.params.long=b.geoCoords.longitude.toString()),d()},c.logger)}function m(a){return!!(a.performGeoDetection&&c.navigator&&c.navigator.geolocation&&c.navigator.geolocation.getCurrentPosition)}function n(b,c){a.ResourceManager.schedule("geo",l(b,c),!1,k(b))}var o,p="Detections",q="application/x-shockwave-flash";return a[p]={detectScreenSize:d,detectUTCOffset:e,detectFlashVersion:g,detectRichMediaSupport:j,detectGeoLocation:n,isGeo:m},a[p]}function m(a,b,c){function d(d,e){var f;return f=new v(a,b,c,d),f.allowGrouping=e,b.adqueues=b.adqueues||{},b.adqueues[d]=f,b.adQueuesIdList=b.adQueuesIdList||[],b.currentAdQueue=f,b.adQueuesIdList.push(d),f}function e(a){var c=b.currentAdQueue||d(q.rnd(1e5).toString(),a.config.enableMultiAd);c.addRequest(a),a.queueId=c.id}function f(a){var d=b.currentAdQueue,e=d.id;if(!q.isObject(d))throw new Error(p+"#execute No AdQueue to execute was found");if(b.currentAdQueue=void 0,d.allowGrouping){var f=s.buildUrl({config:{protocol:c.location.protocol}},r+".js");s.loadScript(f,r,!1,function(b){if(!b)throw new Error(p+"#execute MultiAd plugin failed to load");d=h(d),g(d,a)},null)}else g(d,a);return e}function g(b,c){b.executeConfig=c,a.ResponsiveAdManager.registerQueue(b),b.allowGrouping?(l(b,c.multiAd),a.MultiAdManager.load(b,[])):b.start()}function h(d){var e=new a.pluginClasses.MultiAdGroupQueue(a,b,c,d.id);return b.adqueues[d.id]=e,a.Utils.each(d.storage,function(a){e.addRequest(a)}),e}function i(b,c){k(b,function(){try{a.BannerInjector.doAsync(b)}catch(d){b.logger.log(p,"processAdRequest","Exception caught: "+d),c.advance()}})}function j(b,c,d){b.logger.log(p,"processMultiAdRequest","Start processing group from queue:"+c+" with index "+d),k(b,function(){a.MultiAdManager.loadGroup(b,c,d)})}function k(b,c){var d=b.config;a.BannerInjector.performSyncDetections(d),a.Detections.isGeo(d)?a.Detections.detectGeoLocation(b,function(){c()}):c()}function l(a,b){for(var c=b?b.skipDefault:!1,d=0;d<a.storage.length;d++){var e=a.storage[d];a.requests[e.id].multiAdSkipDefault=c}}function m(a,c){return c?b.adqueues[c].requests[a]:void 0}function n(a){if(0!==b.adQueuesIdList.length)for(var c=b.adQueuesIdList.length-1;c>=0;c--){var d=b.adQueuesIdList[c],e=b.adqueues[d],f=e.requests[a];if(f)return d}}function o(b,c){b.allowGrouping?(0===b.virtualSubGroupCounter&&(b.virtualSubGroupCounter=b.groupList.length),a.MultiAdManager.load(b,c)):(b.createVirtualSubQueue(c),b.start())}var p="AdQueue",q=a.Utils,r="DACMultiAdPlugin",s=a.ResourceLoader;a[p]={enqueue:e,execute:f,processAdRequest:i,processMultiAdRequest:j,getRequest:m,getRequestQueue:n,reloadQueue:o,promoteQueueToMultiAdQueue:h}}function n(a){w.BannerInjector.doAsync(a)}function o(a){p(a);var b=a.config;w.ResponsiveAdManager.register(a),w.BannerInjector.performSyncDetections(b),y.isGeo(b)?(x.createAdContainer(a),y.detectGeoLocation(a,function(){w.BannerInjector.doAsync(a)})):b.syncIfPossible&&w.ResourceManager.isSync(a.config.legacyDACLoadType,w.Environment.getIEVersion())?w.BannerInjector.doSync(a):(x.createAdContainer(a),w.BannerInjector.doAsync(a))}function p(a){var b=w.ConfigResolver.buildConfiguration(a);a.config=w.ConfigFinalizer.process(b,a.logger),a.config.params.grp=a.config.params.grp||r.adgroupid}function q(a,b,c){var d,e=s.adqueues[b];if(e){var f=e.requests[a];d=f?f.context.logger:void 0}if(s.debugMode||d&&d.isEnabled())throw c}var r=window,s=r.ADTECH;if(!s.loadAd){var t=function(a,b,c){this.enabled=!!b.debugMode,this.output=c.console,this.modules=a,this.global=b,this.win=c};t.prototype.debug=function(a){this.enabled&&this.output&&this.output.log(a)},t.prototype.setEnabled=function(a){this.enabled=!!a||this.global.debugMode},t.prototype.isEnabled=function(){return this.enabled},t.prototype.logObject=function(a,b,c){var d=a+":"+b+" ";this.modules.Utils.isObject(r.JSON)?d+=r.JSON.stringify(c):(d+="{ ",this.modules.Utils.eachKey(c,function(a,b){d+=a+":"+b+" "}),d+="}"),this.debug(d)},t.prototype.log=function(a,b,c){this.debug(void 0===b&&void 0===c?a:a+"#"+b+" "+c)};var u=function(a,b,c){this.modules=a,this.global=b,this.win=c,this.logger=new t(a,b,c)};u.prototype.setConfig=function(a){this.config=a,this.id=a.alias?a.alias:a.placement},u.prototype.hasResponsiveConfig=function(){return this.config.responsive.useresponsive};var v=function(a,b,c,d){this.storage=[],this.requests={},this.allowGrouping=!1,this.doAutoAdInjection=!0,this.namespace=a,this.global=b,this.win=c,this.curPointer=-1,this.id=d,this.responsiveIndexes=[],this.virtualSubQueueIndexes=[],this.running=!1};v.prototype.advance=function(){var a=this.getNextRequest();this.namespace.Utils.isObject(a)?this.namespace.AdQueue.processAdRequest(a,this):this.close()},v.prototype.start=function(){this.curPointer=-1,this.running=!0,this.advance()},v.prototype.close=function(){this.running=!1,this.virtualSubQueueIndexes=[]},v.prototype.inVirtualMode=function(){return this.virtualSubQueueIndexes.length>0},v.prototype.getNextRequest=function(){var a;if(this.curPointer+=1,this.inVirtualMode()){var b=this.virtualSubQueueIndexes[this.curPointer];a=this.storage[b]}else a=this.storage[this.curPointer];return a},v.prototype.addRequest=function(a){this.storage.push(a)},v.prototype.getResponsiveRequests=function(){var a=[],b=this;return this.namespace.Utils.each(this.responsiveIndexes,function(c){a.push(b.storage[c])}),a},v.prototype.createVirtualSubQueue=function(a){var b=this;this.virtualSubQueueIndexes=[],this.namespace.Utils.each(a,function(a){b.namespace.Utils.each(b.storage,function(c,d){c.id===a&&b.virtualSubQueueIndexes.push(d)})})};var w={pluginClasses:{}};a(w,s,r),e(w,s,r);var x=b(w,s,r);i(w,s,r),j(w),c(w,s,r);var y=l(w,s,r);f(w,s,r),d(w,s,r),g(w),k(w,s),h(w,s,r),m(w,s,r);void 0===r.adgroupid&&(r.adgroupid=x.rnd(1e3)),s.dacRequestAd=function(a,b){r.Adtech=r.Adtech||{};var c=parseInt(a,10),d=r.Adtech;x.isString(b)?d["KV"+a]=x.stringToObject(b):x.isObject(b)&&(d["KV"+a]=b),d["fif"+a]=d["fif"+a]||{},d["syncIfPossible"+a]=d["syncIfPossible"+a]||!0,d["legacyDACLoadType"+a]=!0,s.loadAd({placement:c})},s.loadAd=function(a,b,c){var d=s.debugMode;try{var e=new u(w,s,r),f=w.LoadAdParametersHandler.handleParameters(a,b,c);e.logger.setEnabled(f.config.debugMode),d=d||f.config.debugMode,e.setConfig(f.config),f.legacyApi?n(e):o(e)}catch(g){if(d)throw g}},s.queueCallback=function(a){try{x.isObject(s.adqueues[a])&&s.adqueues[a].advance()}catch(b){if(s.debugMode)throw b}},s.registerPlugin=function(a){a({modules:w,coreClasses:{Queue:v,Logger:t,RequestContext:u}})},s.enqueueAd=function(a){var b=s.debugMode;try{var c=new u(w,s,r),d=w.LoadAdParametersHandler.handleParameters(a);c.logger.setEnabled(d.config.debugMode),b=b||d.config.debugMode,c.setConfig(d.config),p(c),w.AdQueue.enqueue(c)}catch(e){if(b)throw e}},s.executeQueue=function(a){try{return w.AdQueue.execute(w.ConfigFinalizer.processQueueConfig(a))}catch(b){if(s.debugMode)throw b}},s.showAd=function(a,b){try{w.MultiAdManager.showAd(a,b)}catch(c){q(a,b,c)}},s.writeAd=function(a,b,c,d){try{w.MultiAdManager.writeAd(a,b,c,d)}catch(e){q(a,d,e)}}}}(),function(){"use strict";var a=window,b=a.DAC;b.requestAd||(b.requestAd=function(b,c){a.ADTECH.dacRequestAd(b,c)})}()}catch(e){if(window.ADTECH.debugMode)throw e}
I've looked through so much minified code that I'm getting a headache, but maybe someone else can figure out the needed surrogate from that info?

(@Gazer75: for the moment, you could dump that entire adtech script I posted in a file: URL surrogate and keep adtech.de blocked)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; BSD Four) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.11.5 Safari/534.34
Gazer75
Posts: 12
Joined: Tue Nov 11, 2014 1:20 pm

Re: Problem with a page not displaying properly

Post by Gazer75 »

Heh. Completely lost me with all that. No idea what you really want me to do.

Should add that I also use AdBlock and blocking adtech.de there. Still the page work just fine as long as noscript is not active.
I have to disable noscript completely, just allowing scripts globally will not work.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
barbaz
Senior Member
Posts: 11108
Joined: Sat Aug 03, 2013 5:45 pm

Re: Problem with a page not displaying properly

Post by barbaz »

Hmm... I had to whitelist adtech.de in adblock...

Anyway, see if this works for you, without any other modifications:
go to about:config
create new string, name it

Code: Select all

noscript.surrogate.adtechtmp.replacement
value is a file: URL pointing to a text file containing only the entire adtech script I copied here
create new string: name it

Code: Select all

noscript.surrogate.adtechtmp.sources
value:

Code: Select all

.adtech.de
*Always* check the changelogs BEFORE updating that important software!
Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02
Gazer75
Posts: 12
Joined: Tue Nov 11, 2014 1:20 pm

Re: Problem with a page not displaying properly

Post by Gazer75 »

Sorry for late reply, but it worked! Thank you!

Hope there is a way to make a fix for this in noscript so all can benefit from it.

Is there a a simple way to explain whats going on?
I mean it's not working with noscript running and not blocking, but adblock is. But allowing adtech in noscript AND making an exception in adblock for the DAC.js works.
How come its working just fine when noscript is completely disabled but stuff from adtech is still being blocked in adblock??

Confusing...
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Post Reply