"""Builds the static pages (report permalink, my checks, admin, legal pages, rubric, 404) with one shared head. Plain readable wording, no em dashes, none of the banned words, no postal address (Marty 2026-11-16). Run: python tools/build-pages.py""" import os, html H = os.path.dirname(os.path.abspath(__file__)); PUB = os.path.join(H, '..', 'public') UPDATED = 'November 16, 2026' def page(title, desc, body, scripts=('common.js',), legal=False): sc = ''.join('\n' % s for s in scripts) main = body if legal: main = ('' % body) return ''' %s | WebWorthIt %s %s ''' % (html.escape(title), html.escape(desc), main, sc + ('\n' if legal else '')) PUBLIC_LINE = ('Every WebWorthIt check uses only public information that anyone could look up on their own: public blockchain records, ' 'verified or decompiled public contract code, and the project\'s public website. We do not access private data, we do not hack anything, ' 'we do not sign in to or interact with the project, and we do not move funds. A check is read-only.') OPINION_LINE = ('Our findings are public facts, each one tagged and linked to its on-chain or website source. The scores, the grade (for example "High risk") ' 'and the verdict are our opinion, formed by applying our published rubric to those public facts.') ADVICE_LINE = 'A report is information about code and on-chain records. It is not financial advice and it is not a judgment of any person.' REPLY_LINE = 'A project can reply to its check in its public thread.' privacy = '''

Updated %s

Privacy Policy

TrustClickz runs WebWorthIt. This page says what we keep and why, in plain words.

What we store

Joining and emails

What we never do

Sharing

Your WebWorthIt account is part of the network: your username, wallet and sponsor are shared with the network hub so one account works on every network site. Checks you run are private to you unless you share the link. Checks of our own network contracts are published on purpose.

Your choices

Ask network support to delete your data. The network hub removes it from every network site, except what the blockchain or the law keeps.

Questions: network support. WebWorthIt is run by TrustClickz.

''' % (UPDATED, PUBLIC_LINE) terms = '''

Updated %s

Terms and Conditions

These terms cover your use of WebWorthIt, run by TrustClickz. By using the site you accept them.

What a check is

%s

%s

%s %s

Accuracy

We check every address, transaction and number in a written report against the evidence our tools read. A report that does not pass that check is not shown; only the facts read straight from the chain are shown. Public nodes can fail or limit what they return, so every report says which block range was read and what could not be read. Blockchain records change all the time: a report describes the state at the block it names.

Free checks, deep reports and vouchers

Fair use

Do not use the site to attack, overload or scrape other services, and do not enter sites or addresses you have no reason to check. We may limit or refuse checks to keep the service working for everyone.

No warranty

WebWorthIt is provided as it is. To the extent the law allows, TrustClickz is not liable for decisions you make with or without a report. See the Disclaimer.

Contact

Network support.

''' % (UPDATED, PUBLIC_LINE, OPINION_LINE, ADVICE_LINE, REPLY_LINE) disclaimer = '''

Updated %s

Disclaimer

Public information only. %s

Facts and opinion are kept apart. %s Scores are never for sale: there are no badges to buy and no paid removals.

Not advice. %s Nothing on this site tells you to join, leave, buy, sell or withdraw. Make your own decision, with your own research.

Code and records, not people. We describe what a contract can do and what the chain shows. We do not say anything about the intentions or character of anyone behind a project. %s

Limits. Our tools read public nodes, which can fail or return less than the full history. Function names for unverified code come from public signature databases and are marked INFERRED. What we cannot see is marked UNKNOWN.

''' % (UPDATED, PUBLIC_LINE, OPINION_LINE, ADVICE_LINE, REPLY_LINE) rubric_md = open(os.path.join(H, '..', 'chain', 'rubric.md'), encoding='utf8').read() def md(s): out = []; inlist = False for line in s.splitlines(): if line.startswith('# '): continue if line.startswith('## '): if inlist: out.append(''); inlist = False out.append('

%s

' % html.escape(line[3:])); continue if line.startswith('- ') or (line[:2].isdigit() if line else False) or (line[:1].isdigit() and line[1:3] == '. '): if not inlist: out.append(''); inlist = False; continue if line.strip(): if out and out[-1].startswith('

') and not inlist: out[-1] = out[-1][:-4] + ' ' + html.escape(line.strip()).replace('`', '') + '

' # wrapped paragraph else: out.append('

%s

' % html.escape(line.strip()).replace('`', '')) if inlist: out.append('') return '\n'.join(out) rubric = ('

The published rubric

How a check is scored

%s

' % html.escape(OPINION_LINE)) + md(rubric_md) report = '''
Loading the check...

Run another check

''' my = '''

My checks

Loading...

''' admin = '''

WebWorthIt admin

Admin token
''' joinp = '''

Join free, or sign in

One account across the network. Enter your email and we send you a one-time link: it signs you in if you are already a member, or creates your free account if you are new. Joining never asks you to connect a wallet.

Signed in on InstantAdPay or LinkSpin already? Sign in with the network. See the Privacy Policy for how emails are used.

''' nf = '''

Page not found

Back to WebWorthIt

''' files = { 'privacy.html': page('Privacy Policy', 'What WebWorthIt stores and why. Public information only; we never ask anyone to connect a wallet to run a check.', privacy, legal=True), 'terms.html': page('Terms and Conditions', 'Terms for using WebWorthIt, a read-only contract and website check run by TrustClickz.', terms, legal=True), 'disclaimer.html': page('Disclaimer', 'WebWorthIt uses only public information. Scores are our opinion, not financial advice.', disclaimer, legal=True), 'rubric.html': page('The rubric', 'The published rubric WebWorthIt applies to public facts to form its opinion.', rubric, legal=True), 'report.html': page('Check', 'A WebWorthIt check: public facts with sources, and our opinion from the published rubric.', report, ('common.js', 'render.js', 'report.js')), 'my.html': page('My checks', 'Your WebWorthIt checks and referral link.', my, ('common.js', 'my.js')), 'admin.html': page('Admin', 'WebWorthIt admin.', admin, ('common.js', 'admin.js')), 'join.html': page('Join free or sign in', 'One account across the network. Join WebWorthIt free or sign in with a one-time email link.', joinp, ('common.js', 'join.js')), '404.html': page('Not found', 'Page not found.', nf), } for k, v in files.items(): assert '—' not in v and '–' not in v, k for bad in ('Green' + ' Valley', 'Mo' + 'ody', '350' + '04'): assert bad not in v # no postal address anywhere (Marty 2026-11-16) open(os.path.join(PUB, k), 'w', encoding='utf8', newline='\n').write(v) print('ok', list(files))